#include <rect.h>
Public Methods | |
| Rect () | |
| Rect (float l, float t, float r, float b) | |
| Rect (const Point &cMin, const Point &cMax) | |
| Rect (const IRect &cRect) | |
| ~Rect () | |
| bool | IsValid () const |
| void | Invalidate (void) |
| bool | DoIntersect (const Point &cPoint) const |
| bool | DoIntersect (const Rect &cRect) const |
| float | Width (void) const |
| float | Height (void) const |
| Point | Size () const |
| Point | LeftTop () const |
| Point | RightBottom () const |
| Rect | Bounds (void) const |
| Rect & | Floor (void) |
| Rect & | Ceil (void) |
| Rect & | Resize (float nLeft, float nTop, float nRight, float nBottom) |
| Rect | operator+ (const Point &cPoint) const |
| Rect | operator- (const Point &cPoint) const |
| Point | operator+ (const Rect &cRect) const |
| Point | operator- (const Rect &cRect) const |
| Rect | operator & (const Rect &cRect) const |
| void | operator &= (const Rect &cRect) |
| Rect | operator| (const Rect &cRect) const |
| void | operator|= (const Rect &cRect) |
| Rect | operator| (const Point &cPoint) const |
| void | operator|= (const Point &cPoint) |
| void | operator+= (const Point &cPoint) |
| void | operator-= (const Point &cPoint) |
| bool | operator== (const Rect &cRect) const |
| bool | operator!= (const Rect &cRect) const |
Public Attributes | |
| float | left |
| float | top |
| float | right |
| float | bottom |
|
|
|
|
|||||||||||||||||||||||||||||
|
|
|
|||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.2.9.1 written by Dimitri van Heesch,
© 1997-2001