Core object
Description
A class of objects that represent rectangles. It's designed to operate with controls coordinates.
Property Summary
Property |
Description |
left, top |
Represent coordinates of the left top corner of rectangle. |
height |
Represent height of rectangle. |
width |
Represent width of rectangle. |
Method Summary
Method |
Description |
init |
Initializes object properties with given values. |
right, bottom |
Return coordinates for the right bottom corner of rectangle. |
clone |
Create and return new rectangle initiated with the same values as a source rectangle. |
inflate |
Removes an event listener added by addEventListener. |
deflate |
Removes an event listener added by addEventListener. |
moveTo |
Change current rectangle position by setting new top left corner coordinates. |
moveBy |
Change rectangle position by a specified distance from its current location. |
extent |
Return size of the rectangle - width and height. |
extentRect |
Create and return new rectangle initiated with the same size as a source rectangle and with (0,0) coordinates. |
intersects |
Returns true or false depending on whether or not two rectangles have intersection. |
contains |
Returns true or false depending on whether or not specified rectangle have coordinates inside the original one.. |
toString |
Returns a string representation of the rectangle object. |