Rect (gb.clipper)

This class represents a rectangle with integer coordinates.

Tato třída je vytvořitelný.

Tato třída může být použita jako static function.

Static methods
Stretch   Stretch a Width × Height rectangle so that it fits the Frame rectangle, align it according to the Alignment specified, and return its final position.

Vlastnosti
Bottom   Return or set the position of the bottom border of the rectangle.
H   Return or set the height of the rectangle.
Height   Return or set the height of the rectangle.
Left   Return or set the position of the left border of the rectangle.
Right   Return or set position of the right border of the rectangle.
Top   Return or set the position of the top border of the rectangle.
W   Return or set the width of the rectangle.
Width   Return or set the width of the rectangle.
X   Return or set the X coordinate of the rectangle.
Y   Return or set the Y coordinate of the rectangle.

Metoda
Adjust   Shrink or expand the rectangle.
Center   Return the center of the rectangle.
Clear   Clear the rectangle, i.e. make it void.
Contains   Return if the specified point is included in the rectangle.
Copy   Return a copy of the rectangle.
Expand  
Intersection   Return the intersection between the rectangle and Rect.
IsVoid   Return if the rectangle is void.
Move   Move and optionally resize the rectangle.
Resize   Resize the rectangle.
Shrink  
Translate   Translate the rectangle.
Union   Return the bounding rectangle of the current rectangle and Rect.