Namespace: PP;
Rect
The Rect class implements a rectangle of two-dimensional space.
PP.initClass(PP.Rect, PP.Object, "PP.Rect");
| Constructor name | Brief description | |
| Rect | The Rect constructor creates an instance of the Rect class. |
| Property name | Brief description | |
| Height | The Height property sets height value for a rectangle. | |
| Left | The Left property sets the X coordinate of the top left corner of a rectangle. | |
| Top | The Top property sets the Y coordinate of the top left corner of a rectangle. | |
| Width | The Width property sets width value for a rectangle. |
| Method name | Brief description | |
| addBezierCurve | The addBezierCurve method extends a rectangle on adding a Bezier cubic curve. | |
| addBoundingBox | The addBoundingBox method combines a rectangle with another rectangle. | |
| addPoint | The addPoint method extends a rectangle vertically and horizontally to the specified point. | |
| addQuadraticCurve | The addQuadraticCurve method extends a rectangle on adding a Bezier quadratic curve. | |
| addX | The addX method extends a rectangle horizontally for the specified value. | |
| addY | The addY method extends a rectangle vertically for the specified value. | |
| isPointInBox | The isPointInBox method checks if a point is in the rectangle area. |
| Property name | Brief description | |
| The Id property determines a repository object identifier. |
| Method name | Brief description | |
| clone | The clone method creates an object copy. | |
| dispose | The dispose method deletes the component. | |
| getHashCode | The getHashCode method returns hash code of repository object. | |
| getSettings | The getSettings method returns repository object settings. | |
| getTypeName | The getTypeName method returns the name of the object type without the namespace, to which it belongs. | |
| isEqual | The isEqual method determines whether the specified object is equal to the current repository object. | |
| isLive | The isLive method determines validity of repository object. | |
| removeAllEvents | The removeAllEvents method removes all object event handlers by the specified context. | |
| setSettings | The setSettings method determines repository object settings. | |
| defineProps | The defineProps method creates get and set methods from name array for the specified class. | |
| keys | The keys method returns array of methods and properties names for the specified object. |
See also: