|
#include <CATRect.h>

Rectangles include their top,left position, but not their bottom,right position. (top,left) is inclusive, (bottom,right) is exclusive.
In other words, a rectangle of (0,0,1,1) has a width of 1, and a height of 1. The point (0,0) is inside the rectangle, but the point (1,1) is just outside the rectangle.
Definition at line 56 of file CATRect.h.
Public Member Functions | |
| CATRect () | |
| Default constructor - sets to all 0's. | |
| CATRect (const CATRECT &rect) | |
| Copy constructor. | |
| CATRect (CATInt32 l, CATInt32 t, CATInt32 r, CATInt32 b) | |
| ~CATRect () | |
| Destructor. | |
| CATRect & | operator= (const CATRECT &rect) |
| Operator= override for CATRECT structs. | |
| bool | operator== (const CATRECT &rect) |
| Operator== override for CATRECT structs. | |
| bool | operator!= (const CATRECT &rect) |
| Operator!= override for CATRECT structs. | |
| CATInt32 | Width () const |
| CATInt32 | Height () const |
| CATSIZE | Size () const |
| CATPOINT | Origin () const |
| CATInt32 | CenterX () const |
| CATInt32 | CenterY () const |
| CATPOINT | Center () const |
| void | ZeroOrigin () |
| void | SetOrigin (CATPOINT &point) |
| void | SetOrigin (CATInt32 x, CATInt32 y) |
| void | Offset (const CATPOINT &point) |
| void | Offset (CATInt32 x, CATInt32 y) |
| void | Resize (const CATSIZE &size) |
| void | Resize (CATInt32 width, CATInt32 height) |
| void | Fix () |
| void | Set (CATInt32 l, CATInt32 t, CATInt32 r, CATInt32 b) |
| void | Set (const CATPOINT &topLeft, const CATSIZE &widthHeight) |
| bool | InRect (const CATPOINT &point) const |
| bool | InRect (CATInt32 x, CATInt32 y) const |
| bool | Intersect (const CATRect &srcRect, CATRect *intersectRect=0) const |
| bool | Inside (const CATRect &insideRect) const |
| void | Stretch (CATInt32 stretchSize=1, const CATRect *bounds=0) |
| void | Shrink (CATInt32 stretchSize=1) |
1.5.4