#include <GRect.h>
Public Member Functions | |
int | X () |
Returns the width. | |
int | Y () |
Returns the height. | |
void | ZOff (int x, int y) |
Zero offset, sets the top left to 0,0 and the bottom right to x,y. | |
void | Normal () |
Normalizes the rectangle so that left is less than the right and so on. | |
bool | Valid () |
Returns true if the rectangle is valid. | |
void | Offset (int x, int y) |
Moves the rectangle by an offset. | |
void | Bound (GRect *b) |
Sets the rectangle to the intersection of this object and 'b'. | |
bool | Overlap (GRect *b) |
Returns true if the rectangle 'b' overlaps this rectangle. | |
bool | Overlap (int x, int y) |
Returns true if the point 'x,y' is in this rectangle. | |
void | Union (GRect *a) |
Enlarges this rectangle to include all points in 'a'. |