Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXRegion Class Reference

#include <FXRegion.h>

List of all members.

Public Member Functions

 FXRegion ()
 FXRegion (const FXRegion &r)
 FXRegion (const FXRectangle &rect)
 FXRegion (FXint x, FXint y, FXint w, FXint h)
 FXRegion (const FXPoint *points, FXuint npoints, bool winding=false)
FXRegionoperator= (const FXRegion &r)
bool empty () const
bool contains (FXint x, FXint y) const
bool contains (FXint x, FXint y, FXint w, FXint h) const
FXRectangle bounds () const
FXRegionoffset (FXint dx, FXint dy)
bool operator== (const FXRegion &r) const
bool operator!= (const FXRegion &r) const
FXRegionoperator+= (const FXRegion &r)
FXRegionoperator*= (const FXRegion &r)
FXRegionoperator-= (const FXRegion &r)
FXRegionoperator^= (const FXRegion &r)
FXRegion operator+ (const FXRegion &r) const
FXRegion operator* (const FXRegion &r) const
FXRegion operator- (const FXRegion &r) const
FXRegion operator^ (const FXRegion &r) const
void reset ()
 ~FXRegion ()

Friends

class FXDC
class FXDCWindow
class FXWindow

Detailed Description

Region.


Constructor & Destructor Documentation

Construct new empty region.

Construct new region copied from region r.

Construct new region from rectangle rect.

FX::FXRegion::FXRegion ( FXint  x,
FXint  y,
FXint  w,
FXint  h 
)

Construct rectangle region.

FX::FXRegion::FXRegion ( const FXPoint points,
FXuint  npoints,
bool  winding = false 
)

Construct polygon region.

Destroy region.


Member Function Documentation

FXRegion& FX::FXRegion::operator= ( const FXRegion r)

Assign region r to this one.

bool FX::FXRegion::empty ( ) const

Return true if region is empty.

bool FX::FXRegion::contains ( FXint  x,
FXint  y 
) const

Return true if region contains point.

bool FX::FXRegion::contains ( FXint  x,
FXint  y,
FXint  w,
FXint  h 
) const

Return true if region contains rectangle.

Return bounding box.

Offset region by dx,dy.

bool FX::FXRegion::operator== ( const FXRegion r) const

Return true if region equal to this one.

bool FX::FXRegion::operator!= ( const FXRegion r) const

Return true if region not equal to this one.

FXRegion& FX::FXRegion::operator+= ( const FXRegion r)

Union region r with this one.

FXRegion& FX::FXRegion::operator*= ( const FXRegion r)

Intersect region r with this one.

FXRegion& FX::FXRegion::operator-= ( const FXRegion r)

Subtract region r from this one.

FXRegion& FX::FXRegion::operator^= ( const FXRegion r)

Xor region r with this one.

FXRegion FX::FXRegion::operator+ ( const FXRegion r) const

Union of this region and region r.

FXRegion FX::FXRegion::operator* ( const FXRegion r) const

Intersection of this region and region r.

FXRegion FX::FXRegion::operator- ( const FXRegion r) const

Subtract region r from this region.

FXRegion FX::FXRegion::operator^ ( const FXRegion r) const

Xor of this region and region r.

Reset region to empty.


Friends And Related Function Documentation

friend class FXDC [friend]
friend class FXDCWindow [friend]
friend class FXWindow [friend]

Copyright © 1997-2005 Jeroen van der Zijp