Rect class
Rect class
A class to represent the rectangle
The Rect type exposes the following members:
Constructors
Constructor | Description |
---|
init | Constructor of class Rect |
init | Constructs a new instance of Rect |
Properties
Property | Description |
---|
width | Gets or sets the width of the size |
height | Gets or sets the height of the size |
x | Gets or sets the x of the size |
y | Gets or sets the y of the size |
left | Gets the left of the rectangle |
right | Gets the right of the rectangle |
top | Gets the top of the rectangle |
bottom | Gets the bottom of the rectangle |
Methods
Method | Description |
---|
contains | Return true if the given point is inside the rectangle. |
See Also