|
ADTF Display Toolbox
|
Rectangle class. More...
#include <rect.h>
Public Member Functions | |
| cRect () | |
| default constructor | |
| cRect (const IRect *pRect) | |
| constructor from IRect | |
| cRect (tInt l, tInt t, tInt r, tInt b) | |
| constructor with parameter | |
| tVoid | Release () |
| tVoid | Set (tInt l, tInt t, tInt r, tInt b) |
| sets the rect | |
| tInt | GetWidth () const |
| returns the width of the rectangle | |
| tInt | GetHeight () const |
| returns the height of the rectangle | |
| const cPoint * | GetTopLeft () const |
| returns the top left point of the rectangle | |
| const cPoint * | GetBottomRight () const |
| returns the bottom right point of the rectangle | |
| tInt | GetLeft () const |
| tVoid | SetLeft (tInt nLeft) |
| tInt | GetTop () const |
| tVoid | SetTop (tInt nTop) |
| tInt | GetRight () const |
| tVoid | SetRight (tInt nRight) |
| tInt | GetBottom () const |
| tVoid | SetBottom (tInt nBottom) |
| operator IRect * () | |
| instance of IRect | |
Public Member Functions inherited from IRect | |
| virtual | ~IRect () |
| virtual destructor to ensure proper cleanup. | |
Public Attributes | |
| 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 | |
|
inline |
constructor from IRect
| [in] | pRect | Rectangle |
Definition at line 63 of file rect.h.
References IRect::GetBottom(), IRect::GetLeft(), IRect::GetRight(), IRect::GetTop(), and Set().
|
inline |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlineexplicit |
|
inlinevirtual |
|
inline |
|
inlinevirtual |
Sets the bottom border of the rectangle with the given value
| nBottom | [in] bottom border value |
Implements IRect.
Definition at line 238 of file rect.h.
References m_nBottom, and cPoint::SetX().
|
inlinevirtual |
Sets the left border of the rectangle with the given value
| nLeft | [in] left border value |
Implements IRect.
Definition at line 172 of file rect.h.
References m_nLeft, and cPoint::SetX().
|
inlinevirtual |
Sets the right border of the rectangle with the given value
| nRight | [in] right border value |
Implements IRect.
Definition at line 216 of file rect.h.
References m_nRight, and cPoint::SetY().
|
inlinevirtual |
Sets the top border of the rectangle with the given value
| nTop | [in] top border value |
Implements IRect.
Definition at line 194 of file rect.h.
References m_nTop, and cPoint::SetY().
| tInt m_nBottom |
bottom border of the rect
Definition at line 41 of file rect.h.
Referenced by cRect(), cRect(), cGCLProcessor::CalcScale(), GetBottom(), GetHeight(), Set(), and SetBottom().
| tInt m_nLeft |
left border of the rect
Definition at line 38 of file rect.h.
Referenced by cRect(), cRect(), cGCLProcessor::CalcScale(), cGCLProcessor::GetCoords(), GetLeft(), GetWidth(), Set(), and SetLeft().
| tInt m_nRight |
right border of the rect
Definition at line 40 of file rect.h.
Referenced by cRect(), cRect(), cGCLProcessor::CalcScale(), GetRight(), GetWidth(), Set(), and SetRight().
| tInt m_nTop |
top border of the rect
Definition at line 39 of file rect.h.
Referenced by cRect(), cRect(), cGCLProcessor::CalcScale(), cGCLProcessor::GetCoords(), GetHeight(), GetTop(), Set(), and SetTop().