![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXRegion.h>
Public Methods | |
FXRegion () | |
Construct new empty region. | |
FXRegion (const FXRegion &r) | |
Construct new region copied from region r. | |
FXRegion (FXint x, FXint y, FXint w, FXint h) | |
Construct rectangle region. | |
FXRegion (const FXPoint *points, FXuint npoints, FXbool winding=FALSE) | |
Construct polygon region. | |
FXRegion & | operator= (const FXRegion &r) |
Assign region r to this one. | |
FXbool | empty () const |
Return TRUE if region is empty. | |
FXbool | contains (FXint x, FXint y) const |
Return TRUE if region contains point. | |
FXbool | contains (FXint x, FXint y, FXint w, FXint h) const |
Return TRUE if region contains rectangle. | |
void | bounds (FXRectangle &r) const |
Return bounding box. | |
FXRegion & | offset (FXint dx, FXint dy) |
Offset region by dx,dy. | |
FXRegion & | operator+= (const FXRegion &r) |
Union region r with this one. | |
FXRegion & | operator *= (const FXRegion &r) |
Intersect region r with this one. | |
FXRegion & | operator-= (const FXRegion &r) |
Substract region r from this one. | |
FXRegion & | operator^= (const FXRegion &r) |
Xor region r with this one. | |
~FXRegion () | |
Destroy region. | |
Friends | |
class | FXDC |
class | FXDCWindow |
FXAPI FXRegion | operator+ (const FXRegion &r1, const FXRegion &r2) |
Union of region r1 and region r2. | |
FXAPI FXRegion | operator * (const FXRegion &r1, const FXRegion &r2) |
Intersection of region r1 and region r2. | |
FXAPI FXRegion | operator- (const FXRegion &r1, const FXRegion &r2) |
Substract region r2 from region r1. | |
FXAPI FXRegion | operator^ (const FXRegion &r1, const FXRegion &r2) |
Xor of region r1 and region r2. | |
FXAPI FXbool | operator== (const FXRegion &r1, const FXRegion &r2) |
Return TRUE if region equal to this one. | |
FXAPI FXbool | operator!= (const FXRegion &r1, const FXRegion &r2) |
Return TRUE if region not equal to this one. |