Field Summary |
public
| height: Number |
|
|
|
public
| width: Number |
|
|
|
public
| x: Number |
|
|
|
public
| y: Number |
|
|
|
Property Summary |
public
| bottom (read-only)
|
|
|
|
public
| bottomLeft: x,y (read-only)
|
| returns an object with the properties x and y*
|
|
public
| bottomRight: x+width,y (read-only)
|
| returns an object with the properties x and y*
|
|
public
| left (read-only)
|
|
|
|
public
| location: x,y (read)
|
| returns an object with the properties x and y*
|
|
public
| location: (write)
|
|
|
|
public
| right (read-only)
|
|
|
|
public
| size: width,height (read)
|
| returns an object with the properties width and height*
|
|
public
| size: (write)
|
|
|
|
public
| top (read-only)
|
|
|
|
public
| topLeft: x,y (read-only)
|
| returns an object with the properties x and y*
|
|
public
| topRight: x+width,y (read-only)
|
| returns an object with the properties x and y*
|
|
Constructor |
public
| Rect (
x: Number, y: Number, w: Number, h: Number)
|
| Initializes a new instance of the Rect class with the specified coordinates/dimensions.
|
|
Method Summary |
public
| clone (
): Object |
| Creates a shallow copy of the current Object.
|
|
public
| contains (
v: Rect
): Boolean |
| Specifies whether this Rect contains the specified rect.
|
|
public
| equals (
v: Rect
) |
|
|
|
public static
| fromLTRB (
l, r, t, b
): Rect |
| Initializes a new instance of the Rect class from the specified coordinates.
|
|
public
| inflate (
incW: Number, incH: Number
): Void |
| Inflates the Rectangle by the specified amount
|
|
public
| offset (
incX: Number, incY: Number
): Void |
| Offsets the rectangle
|
|
|