the fair gds editor MacroClassRect

Rect Class Reference

The rect class defines a rectangle. More...

See also: List of Classes


Detailed Description

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

Member Function Documentation

rect::rect( )

creates a rectangular

(introduced with version 20170316)

rect::rect( rect r )

creates a rectangular with copied data from r

(introduced with version 20170520)

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.

(introduced with version 20130306)

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

Sets all coordinates of the rectangle

(introduced with version 20130306)

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.

See also


CategoryMacroClass CategoryMacroClassBasic


MacroClassRect (last edited 2017-05-21 10:01:37 by JurgenThies)