GRegion Class Reference

A region is a list of non-overlapping rectangles that can describe any shape. More...

#include <GRect.h>

Inheritance diagram for GRegion:

GRect

List of all members.

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'.


Detailed Description

A region is a list of non-overlapping rectangles that can describe any shape.
The documentation for this class was generated from the following files:

Generated on Wed Dec 1 15:41:04 2010 for Lgi by  doxygen 1.5.7.1