Object
Rect
Rect | The default constructor for the Rect class. |
Rect | A constructor which takes x1, y1, x2 and y2 coordinates as a parameters. |
Rect | A constructor which takes two points as a parameters. |
Bottom | Sets or gets the bottom coordinate of the rectangle. |
Clone | Returns a clone of the Rect. |
Height | Sets or gets the height of the rectangle. |
Left | Sets or gets the left coordinate of the rectangle. |
Right | Sets or gets the right coordinate of the rectangle. |
Top | Sets or gets the top coordinate of the rectangle. |
Width | Sets or gets the width of a rectangle. |
Contains | Returns true if the given x and y coordinates are within the rectangle. |
Contains | Returns true if the given point is within the rectangle. |
Equal | Returns true if two rectangles are equal. |
Inset | Shrinks or expands a rectangle by given x and y values. |
IsEmpty | Returns true if the rectangle is empty. |
Offset | Moves the rectangle. |
Union | Calculates the smallest rectangle that encloses two rectangles and returns the result as new rectangle. |