Rectangle class.
More...
|
tInt | m_nLeft |
| left border of the rect
|
|
tInt | m_nTop |
| top border of the rect
|
|
tInt | m_nRight |
| right border of the rect
|
|
tInt | m_nBottom |
| bottom border of the rect
|
|
Rectangle class.
Definition at line 29 of file rect.h.
◆ cRect() [1/2]
constructor from IRect
- Parameters
-
◆ cRect() [2/2]
cRect |
( |
tInt |
l, |
|
|
tInt |
t, |
|
|
tInt |
r, |
|
|
tInt |
b |
|
) |
| |
constructor with parameter
- Parameters
-
[in] | l | left border |
[in] | t | top border |
[in] | r | right border |
[in] | b | bottom border |
◆ GetBottom()
gets the bottom border of the rectangle
- Returns
- tInt value of the bottom border
Implements IRect.
◆ GetBottomRight()
const cPoint* GetBottomRight |
( |
| ) |
const |
|
virtual |
returns the bottom right point of the rectangle
- Returns
- bottom right point
Implements IRect.
◆ GetHeight()
returns the height of the rectangle
- Returns
- height
Implements IRect.
◆ GetLeft()
Gets the left border of the rectangle
- Returns
- tInt value of the left border
Implements IRect.
◆ GetRight()
Gets the right border of the rectangle
- Returns
- tInt value of the right border
Implements IRect.
◆ GetTop()
Gets the top border of the rectangle
- Returns
- tInt value of the top border
Implements IRect.
◆ GetTopLeft()
const cPoint* GetTopLeft |
( |
| ) |
const |
|
virtual |
returns the top left point of the rectangle
- Returns
- top left point
Implements IRect.
◆ GetWidth()
returns the width of the rectangle
- Returns
- width
Implements IRect.
◆ operator IRect *()
instance of IRect
- Returns
- object
Definition at line 176 of file rect.h.
◆ Release()
Releases this rectangle
- Returns
- void
Implements IRect.
◆ Set()
tVoid Set |
( |
tInt |
l, |
|
|
tInt |
t, |
|
|
tInt |
r, |
|
|
tInt |
b |
|
) |
| |
sets the rect
- Parameters
-
[in] | l | left border |
[in] | t | top border |
[in] | r | right border |
[in] | b | bottom border |
- Returns
- void
◆ SetBottom()
tVoid SetBottom |
( |
tInt |
nBottom | ) |
|
|
virtual |
Sets the bottom border of the rectangle with the given value
- Parameters
-
nBottom | [in] bottom border value |
- Returns
- void
Implements IRect.
◆ SetLeft()
tVoid SetLeft |
( |
tInt |
nLeft | ) |
|
|
virtual |
Sets the left border of the rectangle with the given value
- Parameters
-
nLeft | [in] left border value |
- Returns
- void
Implements IRect.
◆ SetRight()
tVoid SetRight |
( |
tInt |
nRight | ) |
|
|
virtual |
Sets the right border of the rectangle with the given value
- Parameters
-
nRight | [in] right border value |
- Returns
- void
Implements IRect.
◆ SetTop()
tVoid SetTop |
( |
tInt |
nTop | ) |
|
|
virtual |
Sets the top border of the rectangle with the given value
- Parameters
-
nTop | [in] top border value |
- Returns
- void
Implements IRect.