Graphisoft®

Dialog ManagerVersion: 2.0

Rect::Set

Sets the rectangle.

void Set (
    const Point &       pt1,
    const Point &       pt2
);

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

void Set (
    const Point &       pt,
    short               width,
    short               height
);

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

void Set (
    short               left,
    short               top,
    short               right,
    short               bottom
);

Sets the rectangle from the coordinates (left-top and right-bottom).

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.