|
Public Member Functions |
|
| HRect (int32 nL, int32 nT, int32 nR, int32 nB) |
|
| HRect (const s_region &rhs) |
|
| HRect (const HPoint &ptTL, const HPoint &ptBR) |
| ErrCode | CenterToScreen (void) |
| | Centers the given rectangle on the screen.
|
| bool | Inflate (int32 nXDelta, int32 nYDelta) |
| | inflates the rectangle by a given delta
|
| void | MoveTo (int32 nX, int32 nY) |
| | Moves the rectangle to a given location.
|
| void | MoveTo (const HPoint &pt) |
| | moves the rectangle to a given location
|
| void | Normalize (void) |
| | normalizes the rectangle so that its origin is 0,0
|
| void | Offset (int32 nXDelta, int32 nYDelta) |
| | Adjusts the location of a rectangle by a caller-supplied delta.
|
| void | Offset (HPoint const &ptDelta) |
| | Adjusts the location of a rectangle by a caller-supplied delta.
|
| virtual StringPtr | ToString (void) const |
| | Returns the object's value as a human-readble string.
|
| bool | Get (s_region &rect) const |
| | Returns a copy of the s_region structure.
|
| HPoint | GetBottomRight (void) const |
| | Returns the bottom-right corner of the rectangle as a point.
|
| HPoint | GetDimensions (void) const |
| | Returns the rectangle's dimensions.
|
| int32 | GetHeight (void) const |
| | Returns the height of the rectangle, or zero if invalid.
|
| HPoint | GetOrigin (void) const |
| | Returns the rectangle's origin (top-left corner).
|
| HPoint | GetTopLeft (void) const |
| | Returns the top-left corner.
|
| int32 | GetWidth (void) const |
| | Returns the width of the rectangle, or zero if invalid.
|
| bool | Set (int32 nL, int32 nT, int32 nR, int32 nB) |
| bool | Set (const HPoint &ptTL, const HPoint &ptBR) |
| | sets the rectangle to an caller-supplied set of values
|
|
void | SetEmpty (void) |
| | Sets the rectangle to an empty rectangle (0, 0, 0, 0).
|
| bool | Contains (const HPoint &pt) const |
| | Evaluates to true if a point lies within the rectangle.
|
| bool | IsEmpty (void) const |
| | Evaluates to true if the rectangle is empty.
|
| bool | IsNotEmpty (void) const |
| | Evaluates to true if the rectangle is NOT empty.
|
|
HRect & | operator+= (const HRect &rhs) |
|
HRect & | operator-= (const HRect &rhs) |
|
bool | operator== (const HRect &rhs) const |
|
bool | operator!= (const HRect &rhs) const |