Rectangle class

Rectangle class

Represents a rectangular area.

The Rectangle type exposes the following members:

Constructors

Constructor Description
init Initializes a new Rectangle.
init Initializes a new Rectangle.

Methods

Method Description
to_string Converts the value of this instance to a string.

Properties

Property Description
bottom The y-coordinate of the bottom edge of the rectangular area as a float.
left The x-coordinate of the left edge of the rectangular area.
position The coordinates of the upper-left corner of the rectangular area as a Point instance.
right The x-coordinate of the right edge of the rectangular area.
size The size of the rectangular area as a Size instance.
top The y-coordinate of the top edge of the rectangular area.

See Also