Class Reference rect

The rect class defines a rectangle. More...

Member

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()

Detailed Description

The rect class defines a rectangle. Coordinates are 32 bit integers in database resolution. To get physical units multiply it with databaseunits.

Member Function Documentation


rect::rect( )

creates a rectangular


rect::rect( rect r )

creates a rectangular with copied data from r


int rect::bottom()

Returns: the position of the bottom.


int rect::left()

Returns: the position of the left.


int rect::height()

Returns: height of the rect.


int rect::right()

Returns: the position of the right.


void rect::set(int left,int bottom, int right, int top)

Sets all coordinates of the rectangle.


void rect::set(point p1, point p2)

Sets all coordinates of the rectangle


void rect::setBottom(int bottom)

Set the bottom end of the rectangle to bottom.


void rect::setLeft(int left)

Set the left side of the rectangle to left.


void rect::setRight(int right)

Set the right side of the rectangle to right.


void rect::setTop(int top)

Set the top end of the rectangle to top.


int rect::top()

Returns: the position of the top.


int rect::width()

Returns: width of the rect.