The rect class defines a rectangle. More...
rect( ) | |
rect( rect r ) | |
int | bottom() |
int | left() |
int | height() |
int | right() |
void | set(int left,int bottom, int right, int top) |
void | set(point p1, point p2) |
void | setBottom(int bottom) |
void | setLeft(int left) |
void | setRight(int right) |
void | setTop(int top) |
int | top() |
int | width() |
The rect class defines a rectangle. Coordinates are 32 bit integers in database resolution. To get physical units multiply it with databaseunits.
creates a rectangular
creates a rectangular with copied data from r
Returns: the position of the bottom.
Returns: the position of the left.
Returns: height of the rect.
Returns: the position of the right.
Sets all coordinates of the rectangle.
Sets all coordinates of the rectangle
Set the bottom end of the rectangle to bottom.
Set the left side of the rectangle to left.
Set the right side of the rectangle to right.
Set the top end of the rectangle to top.
Returns: the position of the top.
Returns: width of the rect.