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

FX::FXRegion Class Reference

Region. More...

#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, FXbool winding=FALSE)
FXRegionoperator= (const FXRegion &r)
FXbool empty () const
FXbool contains (FXint x, FXint y) const
FXbool contains (FXint x, FXint y, FXint w, FXint h) const
FXRectangle bounds () const
FXRegionoffset (FXint dx, FXint dy)
FXRegionoperator+= (const FXRegion &r)
FXRegionoperator *= (const FXRegion &r)
FXRegionoperator-= (const FXRegion &r)
FXRegionoperator^= (const FXRegion &r)
void reset ()
 ~FXRegion ()

Friends

FXRegion operator+ (const FXRegion &r1, const FXRegion &r2)
FXRegion operator * (const FXRegion &r1, const FXRegion &r2)
FXRegion operator- (const FXRegion &r1, const FXRegion &r2)
FXRegion operator^ (const FXRegion &r1, const FXRegion &r2)
FXbool operator== (const FXRegion &r1, const FXRegion &r2)
FXbool operator!= (const FXRegion &r1, const FXRegion &r2)


Detailed Description

Region.


Constructor & Destructor Documentation

FX::FXRegion::FXRegion  ) 
 

Construct new empty region.

FX::FXRegion::FXRegion const FXRegion r  ) 
 

Construct new region copied from region r.

FX::FXRegion::FXRegion const FXRectangle rect  ) 
 

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,
FXbool  winding = FALSE
 

Construct polygon region.

FX::FXRegion::~FXRegion  ) 
 

Destroy region.


Member Function Documentation

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

Assign region r to this one.

FXbool FX::FXRegion::empty  )  const
 

Return TRUE if region is empty.

FXbool FX::FXRegion::contains FXint  x,
FXint  y
const
 

Return TRUE if region contains point.

FXbool FX::FXRegion::contains FXint  x,
FXint  y,
FXint  w,
FXint  h
const
 

Return TRUE if region contains rectangle.

FXRectangle FX::FXRegion::bounds  )  const
 

Return bounding box.

FXRegion& FX::FXRegion::offset FXint  dx,
FXint  dy
 

Offset region by dx,dy.

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.

void FX::FXRegion::reset  ) 
 

Reset region to empty.


Friends And Related Function Documentation

FXRegion operator+ const FXRegion r1,
const FXRegion r2
[friend]
 

Union of region r1 and region r2.

FXRegion operator * const FXRegion r1,
const FXRegion r2
[friend]
 

Intersection of region r1 and region r2.

FXRegion operator- const FXRegion r1,
const FXRegion r2
[friend]
 

Subtract region r2 from region r1.

FXRegion operator^ const FXRegion r1,
const FXRegion r2
[friend]
 

Xor of region r1 and region r2.

FXbool operator== const FXRegion r1,
const FXRegion r2
[friend]
 

Return TRUE if region equal to this one.

FXbool operator!= const FXRegion r1,
const FXRegion r2
[friend]
 

Return TRUE if region not equal to this one.

Copyright © 1997-2005 Jeroen van der Zijp