Rect structure.
More...
|
| CRect (CCoord left=0, CCoord top=0, CCoord right=0, CCoord bottom=0) |
|
| CRect (const CRect &r) |
|
| CRect (const CPoint &origin, const CPoint &size) |
|
CRect & | operator() (CCoord left, CCoord top, CCoord right, CCoord bottom) |
|
bool | operator!= (const CRect &other) const |
|
bool | operator== (const CRect &other) const |
|
CCoord | width () const |
|
CCoord | height () const |
|
CCoord | getWidth () const |
|
CCoord | getHeight () const |
|
CRect & | setWidth (CCoord width) |
|
CRect & | setHeight (CCoord height) |
|
CPoint | getTopLeft () const |
|
CPoint | getTopRight () const |
|
CPoint | getBottomLeft () const |
|
CPoint | getBottomRight () const |
|
CRect & | setTopLeft (const CPoint &inPoint) |
|
CRect & | setTopRight (const CPoint &inPoint) |
|
CRect & | setBottomLeft (const CPoint &inPoint) |
|
CRect & | setBottomRight (const CPoint &inPoint) |
|
CPoint | getCenter () const |
|
CPoint | getSize () const |
|
CRect & | setSize (const CPoint &size) |
|
CRect & | offset (CCoord x, CCoord y) |
|
CRect & | inset (CCoord deltaX, CCoord deltaY) |
|
CRect & | extend (CCoord deltaX, CCoord deltaY) |
|
CRect & | moveTo (CCoord x, CCoord y) |
|
CRect & | inset (const CPoint &p) |
|
CRect & | extend (const CPoint &p) |
|
CRect & | moveTo (const CPoint &p) |
|
CRect & | offset (const CPoint &p) |
|
CRect & | offsetInverse (const CPoint &p) |
|
bool | pointInside (const CPoint &where) const |
| Checks if point is inside this rect. More...
|
|
bool | isEmpty () const |
|
bool | rectOverlap (const CRect &rect) const |
|
CRect & | bound (const CRect &rect) |
|
CRect & | unite (const CRect &rect) |
|
CRect & | normalize () |
|
CRect & | originize () |
|
CRect & | centerInside (const CRect &r) |
| moves this rect to the center of r More...
|
|
CRect & | makeIntegral () |
|
moves this rect to the center of r
CPoint getBottomLeft |
( |
| ) |
const |
|
inline |
CPoint getBottomRight |
( |
| ) |
const |
|
inline |
bool operator!= |
( |
const CRect & |
other | ) |
const |
|
inline |
bool operator== |
( |
const CRect & |
other | ) |
const |
|
inline |
bool pointInside |
( |
const CPoint & |
where | ) |
const |
|
inline |
Checks if point is inside this rect.
bool rectOverlap |
( |
const CRect & |
rect | ) |
const |
|
inline |
The documentation for this struct was generated from the following file: