RectF

Rectangle type.

TypeObject

This type defines a simple integer rectangle class. The containment semantics are array-like; that is, the coordinate (x, y) is considered to be contained by the rectangle, but the coordinate (x + width, y) is not.

This type is represented by an Object with x, y, width, height properties.

window.setBounds({x: 11, y: 24, width: 100, height: 100})

Properties

Number x

X coordinate.

Number y

Y coordinate.

Number width

Rectangle width.

Number height

Rectangle height.