A 2-dimensional rectangle. Described by left, right, top and bottom 
  coords (width and height are calculated as necessary).
    | 
       
     | 
      
        
          __init__(...) 
      x.__init__(...) initializes x; see help(type(x)) for signature | 
          
            
            
           | 
         
       
      
     | 
  
    | 
      a new object with type S, a subtype of T
     | 
      
      
     | 
  
    | 
      float
     | 
      
        
          centerX(self) 
      Return center in X. | 
          
            
            
           | 
         
       
      
     | 
  
    | 
      float
     | 
      
        
          centerY(self) 
      Return height in Y. | 
          
            
            
           | 
         
       
      
     | 
  
    | 
      int
     | 
      
        
          clampX(self,
        x) 
      Return x restricted to pointing at a pixel in the box. | 
          
            
            
           | 
         
       
      
     | 
  
    | 
      int
     | 
      
        
          clampY(self,
        y) 
      Return y restricted to pointing at a pixel in the box. | 
          
            
            
           | 
         
       
      
     | 
  
    | 
      None
     | 
      
        
          clear(self) 
      Set to is_constant(). | 
          
            
            
           | 
         
       
      
     | 
  
    | 
      int
     | 
      
      
     | 
  
    | 
      None
     | 
      
        
          intersect(self,
        x,
        y,
        r,
        t) 
      Intersect with the given edges. | 
          
            
            
           | 
         
       
      
     | 
  
    | 
      True if box is 1x1 in both directions, False otherwise.
     | 
      
      
     | 
  
    | 
      None
     | 
      
        
          merge(self,
        x,
        y,
        r,
        t) 
      Merge with the given edges. | 
          
            
            
           | 
         
       
      
     | 
  
    | 
      None
     | 
      
        
          move(self,
        dx,
        dy) 
      Move all the sides and thus the entire box by the given deltas. | 
          
            
            
           | 
         
       
      
     | 
  
    | 
      None
     | 
      
        
          pad(self,
        dx,
        dy,
        dr,
        dt) 
      Move all the sides and thus the entire box by the given deltas. | 
          
            
            
           | 
         
       
      
     | 
  
    | 
      int
     | 
      
        
          r(self) 
      Return the right edge of the box. | 
          
            
            
           | 
         
       
      
     | 
  
    | 
      None
     | 
      
        
          set(self,
        x,
        y,
        r,
        t) 
      Set all values at once. | 
          
            
            
           | 
         
       
      
     | 
  
    | 
      None
     | 
      
        
          setH(self,
        n) 
      Set height by moving top edge. | 
          
            
            
           | 
         
       
      
     | 
  
    | 
      None
     | 
      
        
          setR(self,
        n) 
      Set the right edge. | 
          
            
            
           | 
         
       
      
     | 
  
    | 
      None
     | 
      
        
          setT(self,
        n) 
      Set top edge. | 
          
            
            
           | 
         
       
      
     | 
  
    | 
      None
     | 
      
        
          setW(self,
        n) 
      Set width by moving right edge. | 
          
            
            
           | 
         
       
      
     | 
  
    | 
      None
     | 
      
        
          setX(self,
        n) 
      Set the left edge. | 
          
            
            
           | 
         
       
      
     | 
  
    | 
      None
     | 
      
        
          setY(self,
        n) 
      Set the bottom edge. | 
          
            
            
           | 
         
       
      
     | 
  
    | 
      int
     | 
      
      
     | 
  
    | 
      int
     | 
      
      
     | 
  
    | 
      int
     | 
      
        
          x(self) 
      The left edge of the box. | 
          
            
            
           | 
         
       
      
     | 
  
    | 
      int
     | 
      
        
          y(self) 
      Return the bottom edge. | 
          
            
            
           | 
         
       
      
     | 
  
  
    | 
     Inherited from object:
      __delattr__,
      __format__,
      __getattribute__,
      __hash__,
      __reduce__,
      __reduce_ex__,
      __repr__,
      __setattr__,
      __sizeof__,
      __str__,
      __subclasshook__
       
     |