Rect

Namespace: PP;

Inheritance hierarchy

Object

Rect

Description

The Rect class implements a rectangle of two-dimensional space.

Syntax

PP.initClass(PP.Rect, PP.Object, "PP.Rect");

Constructor

  Constructor name Brief description
Rect The Rect constructor creates an instance of the Rect class.

Properties

  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.

Methods

  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.

Properties inherited from the Object class

  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.

Methods inherited from the Object class

  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:

PP