ManaPlus
|
#include <cliprect.h>
Public Member Functions | |
ClipRect () | |
ClipRect (const int x0, const int y0, const int width0, const int height0, const int xOffset0, const int yOffset0) | |
Public Member Functions inherited from Rect | |
Rect () | |
Rect (const int x_, const int y_, const int width_, const int height_) | |
Rect (const Rect &r) | |
Rect & | operator= (const Rect &r) |
virtual | ~Rect () |
void | setAll (const int x0, const int y0, const int width0, const int height0) |
bool | isIntersecting (const Rect &rectangle) const |
bool | isPointInRect (const int x_, const int y_) const |
Data Fields | |
int | xOffset |
int | yOffset |
Data Fields inherited from Rect | |
int | x |
int | y |
int | width |
int | height |
A rectangle used when dealing with clipping. A clip rectangle is a regular rectangle extended with variables for x offsets and y offsets. The offsets are used for calculations from relative screen coordinates to actual screen coordinates.
Definition at line 78 of file cliprect.h.
|
inline |
|
inline |
Constructor.
x0 | The rectangle x coordinate. |
y0 | The rectangle y coordinate. |
width0 | The rectangle width. |
height0 | The rectangle height. |
xOffset0 | The offset of the x coordinate. Used to for calculating the actual screen coordinate from the relative screen coordinate. |
yOffset0 | The offset of the y coordinate. Used to for calculating the actual screen coordinate from the relative screen coordinate. |
Definition at line 105 of file cliprect.h.
int ClipRect::xOffset |
Holds the x offset of the x coordinate.
Definition at line 122 of file cliprect.h.
Referenced by Button::draw(), Graphics::pushClipArea(), and ScrollArea::updateCalcFlag().
int ClipRect::yOffset |
Holds the y offset of the y coordinate.
Definition at line 127 of file cliprect.h.
Referenced by BrowserBox::draw(), Button::draw(), StaticBrowserBox::draw(), Graphics::pushClipArea(), and ScrollArea::updateCalcFlag().