Graphisoft®

Dialog ManagerVersion: 2.0

Rect::Rect

Class constructor.

Rect ();

Constructs a rectangle. The left, top, right, bottom coordinates will be zero.

Rect (
    const Point &       pt1,
    const Point &       pt2
);

Constructs a rectangle from the given points (left-top and right-bottom vertices).

Rect (
    const Point &       pt,
    short               width,
    short               height
);

Constructs a rectangle from the given point (left-top), and from the sizes.

Rect (
    short               left,
    short               top,
    short               right,
    short               bottom
);

Constructs a rectangle from the given coordinates (left-top and right-bottom vertices).

Parameters

pt1
The left-top vertex of the rectangle given with a Point.
pt2
The right-bottom vertex of the rectangle given with a Point.
pt
The left-top vertex of the rectangle given with a Point.
width
The width of the rectangle.
height
The height of the rectangle.
left
The horizontal coordinate of the left-top vertex.
top
The vertical coordinate of the left-top vertex.
right
The horizontal coordinate of the right-bottom vertex.
bottom
The vertical coordinate of the right-bottom vertex.