new Rect(left, top, right, bottom)
Construct an instance of the
Rect
class.
Note: No range checking is performed, so the caller must ensure that left <= right and top <= bottom.
Parameters:
Name | Type | Description |
---|---|---|
left |
number | Left X coordinate. |
top |
number | Top Y coordinate. |
right |
number | Right X coordinate. |
bottom |
number | Bottom Y coordinate. |
- Since:
- Version 1.8 (API level 9)