GClasses
|
Represents a rectangular region with integers. More...
#include <GRect.h>
Public Member Functions | |
GRect () | |
GRect (int _x, int _y, int _w, int _h) | |
void | set (int _x, int _y, int _w, int _h) |
Sets all 4 values in this rect. | |
bool | doesInclude (int _x, int _y) |
Returns true of this rect includes the specified point. | |
void | clip (GRect *pClippingRect) |
Clips this rect to fit within pClippingRect. | |
Public Attributes | |
int | x |
int | y |
int | w |
int | h |
Represents a rectangular region with integers.
GClasses::GRect::GRect | ( | ) | [inline] |
GClasses::GRect::GRect | ( | int | _x, |
int | _y, | ||
int | _w, | ||
int | _h | ||
) | [inline] |
void GClasses::GRect::clip | ( | GRect * | pClippingRect | ) |
Clips this rect to fit within pClippingRect.
bool GClasses::GRect::doesInclude | ( | int | _x, |
int | _y | ||
) | [inline] |
Returns true of this rect includes the specified point.
void GClasses::GRect::set | ( | int | _x, |
int | _y, | ||
int | _w, | ||
int | _h | ||
) | [inline] |
Sets all 4 values in this rect.