Empty Region | |
OSRegion | fRegion |
void | MakeEmptyPlatformRegion () |
Public Member Functions | |
void | Set (RgnHandle inRegion) |
RgnHandle | GetAsQDRegion () |
operator RgnHandle () const | |
RgnHandle | Get () |
Constructor / Destructor | |
CP_Region () | |
Constructor. | |
CP_Region (float inLeft, float inTop, float inRight, float inBottom) | |
CP_Region (const CP_Point &inLocation, const CP_Size &inSize) | |
CP_Region (const CP_Rect &inRect) | |
CP_Region (const CP_Region &inRegion) | |
virtual | ~CP_Region () |
Destructor. | |
Comparers | |
bool | operator== (const CP_Region &inRegion) const |
bool | operator!= (const CP_Region &inRegion) const |
Getters | |
CP_Rect | Bounds () const |
Math - Region input | |
CP_Region & | operator+= (const CP_Region &inRegion) |
CP_Region & | operator-= (const CP_Region &inRegion) |
CP_Region | operator+ (const CP_Region &inRegion) |
CP_Region | operator- (const CP_Region &inRegion) |
CP_Region & | operator= (const CP_Region &inRegion) |
Math - Point input | |
CP_Region | operator+= (CP_Point &inPoint) |
CP_Region & | operator-= (const CP_Point &inPoint) |
CP_Region | operator+ (CP_Point &inPoint) |
CP_Region | operator- (const CP_Point &inPoint) |
Movement | |
void | Offset (float inHorAmt, float inVerAmt) |
void | Offset (const CP_Point &amt) |
Setters | |
void | Set (float inLeft, float inTop, float inRight, float inBottom) |
void | Set (const CP_Point &inLocation, const CP_Size &inSize) |
void | Set (const CP_Rect &inRect) |
void | Intersect (const CP_Region &area) |
void | Union (CP_Region &area) |
void | Difference (CP_Region &inRegion) |
Sizers | |
void | Inset (float horAmt, float verAmt) |
void | Inset (const CP_Point &amt) |
Testers | |
bool | IsEmpty () const |
bool | IsValid () const |
bool | Contains (const CP_Rect &inRect) |
bool | Contains (const CP_Point &inPoint) |
Utility | |
void | MakeEmpty () |
float | Width () const |
float | Height () const |
Constructor / Destructor | |
CP_Region (RgnHandle inRegion) | |
Constructor / Destructor | |
CP_Region (HRGN inRegion) | |
Converters | |
operator HRGN () const | |
CP_Region & | operator= (CP_HRGN &inRegion) |
HRGN | Get () |
void | Set (HRGN inRegion) |
|
Constructor.
|
|
Constructor. Constructs the region from the passed in coordinates.
|
|
Constructor. Constructs the region from the passed in CP_Point specifiying the top left corner, and the CP_Size specifying the size.
|
|
Constructor. Constructs the region from the passed in CP_Rect specifying the bounds of the region.
|
|
Copy constructor. Creates a c copy of the passed in region in this object.
|
|
Destructor.
|
|
The OSs region object. |
|
Constructor. Constructs the region from an existing Windows HRGN.
|
|
Equality operator. Checks is this region is equal to the passed in region, and returns true if they are.
CP_UseDepreciated_10_4_APIs |
|
Inequality operator. Checks is this region is not equal to the passed in region, and returns true if they are.
|
|
Returns the bounds of this region.
|
|
Plus equals. Adds the passed in region to this region.
|
|
Minus equals. Subtracts the passed in region from this region.
|
|
Addition operator. Adds the passed in region to this region.
|
|
Subtraction operator. Subtracts the passed in region to this region.
|
|
Assignment operator. Copies the passed in region to this region.
|
|
Addition equals operator. Offsets this region by the amount specified in the passed in point.
|
|
Minus equals operator. Offsets this region by the amount specified in the passed in point. This moves the negative of the points coordinates.
|
|
Addition operator. Calls operator += with this region and the passed in point.
|
|
Subtraction operator. Calls operator -= with this region and the passed in point.
|
|
Moves the region by the specified distance.
|
|
Moves the region by the specified distance.
|
|
Sets the region to the bounds of the passed in coordinates.
|
|
Sets the region to the bounds of the passed in CP_Point and CP_Size.
|
|
Sets the region to the bounds of the passed in CP_Rect.
|
|
Sets the region to the intersection of this region and the passed in region.
|
|
Sets the region to the union of this region and the passed in region.
|
|
Sets the region to the difference of this region and the passed in region.
|
|
Insets (shrinks) the region by the specified distance.
|
|
Insets (shrinks) the region by the specified distance.
|
|
Returns true if this region is empty.
|
|
Returns true if this region is valid.
|
|
Returns true if this region contains the passed in CP_Rect.
|
|
Returns true if this region contains the passed in CP_Point.
|
|
Sets the bounds of this region to all 0's making it an empty region.
|
|
Returns the width of this region.
|
|
Returns the height of this region.
|
|
Makes a platforms region that is initially empty.
|
|
Sets the region from an existing MacOS RgnHandle.
|
|
Returns the HIShape maintained by this class as a RgnHandle for APIs that still need RgnHandles.
|
|
operator RgnHandle. Converts and returns this object as a MacOS RgnHandle.
|
|
Returns this object as a MacOS RgnHandle.
|
|
operator hrgn. Converts and returns this object as a Windows HRGN.
|
|
Sets the region from an existing Windows HRGN in the CP_HRGN object..
|
|
|
|
Sets the region from an existing Windows HRGN.
|
|
|