The rectangle is defined by four integers representing its location and size.
The Rectangle type exposes the following members:
| Constructor |
Description |
| init |
|
| Method |
Description |
| to_string |
Returns a string that represents this instance. |
| Property |
Description |
| bottom |
The y-coordinate that is the sum of the Y and Height property values of the rectangle. |
| height |
The height of the rectangle. |
| is_empty |
The rectangle is empty. |
| left |
The x-coordinate of the left edge of the rectangle. |
| right |
The x-coordinate that is the sum of X and Width property values of the rectangle. |
| top |
The y-coordinate that is the sum of the Y and Height property values of the rectangle. |
| width |
The width of the rectangle. |
| x |
The x value. |
| y |
The y. |
| Field |
Description |
| EMPTY |
Gets the empty rectangle. |
We value your opinion. Your feedback will help us improve our documentation.