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 | |
| Data | The Data property associates a random object with this component. | |
| Id | The Id property sets component identifier. | |
| Settings | The Settings property sets the component parameters. |
| Method name | Brief description | |
| clone | The clone method creates a copy of object. It is not implemented in PP.Ui.Control. | |
| dispose | The dispose method deletes the component. | |
| getTypeName | The getTypeName method returns the name of the object type without the namespace, to which it belongs. |
See also: