Class: SDC::IntRect
- Inherits:
- 
      Object
      
        - Object
- SDC::IntRect
 
- Defined in:
- engine_docs/automatic_doc_IntRect.rb,
 engine_docs/automatic_doc_IntRect.rb
Overview
Simple rectangle consisting of integer valued boundaries
Instance Attribute Summary collapse
- 
  
    
      #height  ⇒ Integer 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Height of the rectangle. 
- 
  
    
      #left  ⇒ Integer 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    x coordinate of the left rectangle side. 
- 
  
    
      #top  ⇒ Integer 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    y coordinate of the upper rectangle side. 
- 
  
    
      #width  ⇒ Integer 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Width of the rectangle. 
Instance Method Summary collapse
- 
  
    
      #initialize(left = 0, top = 0, width = 0, height = 0)  ⇒ IntRect 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    Creates a rectangle with given left top point, width and height. 
Constructor Details
#initialize(left = 0, top = 0, width = 0, height = 0) ⇒ IntRect
Creates a rectangle with given left top point, width and height
|  | # File 'engine_docs/automatic_doc_IntRect.rb', line 9
 | 
Instance Attribute Details
#height ⇒ Integer
Height of the rectangle
|  | # File 'engine_docs/automatic_doc_IntRect.rb', line 22
 | 
#left ⇒ Integer
x coordinate of the left rectangle side
|  | # File 'engine_docs/automatic_doc_IntRect.rb', line 26
 | 
#top ⇒ Integer
y coordinate of the upper rectangle side
|  | # File 'engine_docs/automatic_doc_IntRect.rb', line 30
 | 
#width ⇒ Integer
Width of the rectangle
|  | # File 'engine_docs/automatic_doc_IntRect.rb', line 18
 |