Rect
Contents
[
Hide
]Rect class
A class to represent the rectangle
Methods
constructor
| Name | Description |
|---|---|
| constructor() |
Result:
constructor_overload
| Name | Description |
|---|---|
| constructor_overload(x, y, width, height) | Constructor of class Rect |
Parameters:
| Name | Type | Description |
|---|---|---|
| Number | null | |
| Number | null | |
| widt | Number | null |
| heigh | Number | null |
Result:
getWidth
| Name | Description |
|---|---|
| getWidth() | Gets or sets the width of the size |
Result:
setWidth
| Name | Description |
|---|---|
| setWidth(value) | Gets or sets the width of the size |
Result:
getHeight
| Name | Description |
|---|---|
| getHeight() | Gets or sets the height of the size |
Result:
setHeight
| Name | Description |
|---|---|
| setHeight(value) | Gets or sets the height of the size |
Result:
getX
| Name | Description |
|---|---|
| getX() | Gets or sets the x of the size |
Result:
setX
| Name | Description |
|---|---|
| setX(value) | Gets or sets the x of the size |
Result:
getY
| Name | Description |
|---|---|
| getY() | Gets or sets the y of the size |
Result:
setY
| Name | Description |
|---|---|
| setY(value) | Gets or sets the y of the size |
Result:
getLeft
| Name | Description |
|---|---|
| getLeft() | Gets the left of the rectangle |
Result:
getRight
| Name | Description |
|---|---|
| getRight() | Gets the right of the rectangle |
Result:
getTop
| Name | Description |
|---|---|
| getTop() | Gets the top of the rectangle |
Result:
getBottom
| Name | Description |
|---|---|
| getBottom() | Gets the bottom of the rectangle |
Result:
contains
| Name | Description |
|---|---|
| contains(x, y) | Return true if the given point is inside the rectangle. |
Parameters:
| Name | Type | Description |
|---|---|---|
| Number | null | |
| Number | null |
Result: boolean