|
MoSync 3.2.1
|
Rect geometric helper structure/function. More...
#include <MAUtil/Geometry.h>
Public Member Functions | |
| Rect () | |
| Rect (int x, int y, int width, int height) | |
| bool | contains (const Point &p) const |
| bool | contains (int x, int y) const |
| bool | overlaps (const Rect &r) const |
| void | setPosition (int x, int y) |
| virtual void | set (int x, int y, int w, int h) |
Public Attributes | |
| int | x |
| int | y |
| int | width |
| int | height |
Rect geometric helper structure/function.
| MAUtil::Rect::Rect | ( | int | x, |
| int | y, | ||
| int | width, | ||
| int | height | ||
| ) |
| bool MAUtil::Rect::contains | ( | const Point & | p | ) | const |
| bool MAUtil::Rect::contains | ( | int | x, |
| int | y | ||
| ) | const |
| bool MAUtil::Rect::overlaps | ( | const Rect & | r | ) | const |
Returns true if this and r share any surface point.
| void MAUtil::Rect::setPosition | ( | int | x, |
| int | y | ||
| ) |
| virtual void MAUtil::Rect::set | ( | int | x, |
| int | y, | ||
| int | w, | ||
| int | h | ||
| ) | [virtual] |
| int MAUtil::Rect::x |
| int MAUtil::Rect::y |