2008-03-08 13:52:38 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: region.h
|
2008-03-10 15:24:38 +00:00
|
|
|
// Purpose: interface of wxRegionIterator
|
2008-03-08 13:52:38 +00:00
|
|
|
// Author: wxWidgets team
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Licence: wxWindows license
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2008-06-21 02:38:44 +00:00
|
|
|
/**
|
|
|
|
Types of results returned from a call to wxRegion::Contains().
|
|
|
|
*/
|
|
|
|
enum wxRegionContain
|
|
|
|
{
|
|
|
|
/** The specified value is not contained within this region. */
|
|
|
|
wxOutRegion = 0,
|
|
|
|
|
|
|
|
/**
|
|
|
|
The specified value is partially contained within this region.
|
|
|
|
|
|
|
|
On Windows, this result is not supported. ::wxInRegion will be returned
|
|
|
|
instead.
|
|
|
|
*/
|
|
|
|
wxPartRegion = 1,
|
|
|
|
|
|
|
|
/**
|
|
|
|
The specified value is fully contained within this region.
|
|
|
|
|
|
|
|
On Windows, this result will be returned even if only part of the specified
|
|
|
|
value is contained in this region.
|
|
|
|
*/
|
|
|
|
wxInRegion = 2
|
|
|
|
};
|
|
|
|
|
2008-03-08 13:52:38 +00:00
|
|
|
/**
|
|
|
|
@class wxRegionIterator
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-03-08 13:52:38 +00:00
|
|
|
This class is used to iterate through the rectangles in a region,
|
|
|
|
typically when examining the damaged regions of a window within an OnPaint call.
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-03-08 13:52:38 +00:00
|
|
|
To use it, construct an iterator object on the stack and loop through the
|
|
|
|
regions, testing the object and incrementing the iterator at the end of the
|
|
|
|
loop.
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-03-08 13:52:38 +00:00
|
|
|
See wxPaintEvent for an example of use.
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-03-08 13:52:38 +00:00
|
|
|
@library{wxcore}
|
2008-04-10 13:21:20 +00:00
|
|
|
@category{gdi}
|
|
|
|
|
|
|
|
@stdobjects
|
|
|
|
::wxNullRegion
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-03-10 15:24:38 +00:00
|
|
|
@see wxPaintEvent
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
|
|
|
class wxRegionIterator : public wxObject
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
/**
|
2008-06-21 02:38:44 +00:00
|
|
|
Default constructor.
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
|
|
|
wxRegionIterator();
|
2008-06-21 02:38:44 +00:00
|
|
|
/**
|
|
|
|
Creates an iterator object given a region.
|
|
|
|
*/
|
2008-03-08 14:43:31 +00:00
|
|
|
wxRegionIterator(const wxRegion& region);
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
2008-06-21 02:38:44 +00:00
|
|
|
An alias for GetHeight().
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
2008-03-09 16:24:26 +00:00
|
|
|
wxCoord GetH() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Returns the height value for the current region.
|
|
|
|
*/
|
2008-03-09 16:24:26 +00:00
|
|
|
wxCoord GetHeight() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Returns the current rectangle.
|
|
|
|
*/
|
2008-03-09 16:24:26 +00:00
|
|
|
wxRect GetRect() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
2008-06-21 02:38:44 +00:00
|
|
|
An alias for GetWidth().
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
2008-03-09 16:24:26 +00:00
|
|
|
wxCoord GetW() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Returns the width value for the current region.
|
|
|
|
*/
|
2008-03-09 16:24:26 +00:00
|
|
|
wxCoord GetWidth() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Returns the x value for the current region.
|
|
|
|
*/
|
2008-03-09 16:24:26 +00:00
|
|
|
wxCoord GetX() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Returns the y value for the current region.
|
|
|
|
*/
|
2008-03-09 16:24:26 +00:00
|
|
|
wxCoord GetY() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Returns @true if there are still some rectangles; otherwise returns @false.
|
|
|
|
*/
|
2008-03-09 16:24:26 +00:00
|
|
|
bool HaveRects() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
2008-06-21 02:38:44 +00:00
|
|
|
Resets the iterator to the beginning of the rectangles.
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
|
|
|
void Reset();
|
2008-06-21 02:38:44 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Resets the iterator to the given region.
|
|
|
|
*/
|
2008-03-08 14:43:31 +00:00
|
|
|
void Reset(const wxRegion& region);
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Increment operator. Increments the iterator to the next region.
|
2008-06-21 02:38:44 +00:00
|
|
|
|
|
|
|
@beginWxPythonOnly
|
|
|
|
A wxPython alias for this operator is called Next.
|
|
|
|
@endWxPythonOnly
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
|
|
|
void operator ++();
|
|
|
|
|
|
|
|
/**
|
|
|
|
Returns @true if there are still some rectangles; otherwise returns @false.
|
2008-06-21 02:38:44 +00:00
|
|
|
|
|
|
|
You can use this to test the iterator object as if it were of type @c bool.
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
2008-03-09 16:24:26 +00:00
|
|
|
operator bool() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2008-03-10 15:24:38 +00:00
|
|
|
|
2008-03-08 13:52:38 +00:00
|
|
|
/**
|
|
|
|
@class wxRegion
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-03-08 13:52:38 +00:00
|
|
|
A wxRegion represents a simple or complex region on a device context or window.
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-06-21 02:38:44 +00:00
|
|
|
This class uses @ref overview_refcount "reference counting and copy-on-write"
|
2008-03-08 13:52:38 +00:00
|
|
|
internally so that assignments between two instances of this class are very
|
|
|
|
cheap. You can therefore use actual objects instead of pointers without
|
|
|
|
efficiency problems. If an instance of this class is changed it will create
|
|
|
|
its own data internally so that other instances, which previously shared the
|
|
|
|
data using the reference counting, are not affected.
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-06-21 02:38:44 +00:00
|
|
|
@stdobjects
|
|
|
|
- ::wxNullRegion
|
|
|
|
|
2008-03-08 13:52:38 +00:00
|
|
|
@library{wxcore}
|
2008-03-14 14:42:46 +00:00
|
|
|
@category{data,gdi}
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-03-10 15:24:38 +00:00
|
|
|
@see wxRegionIterator
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
|
|
|
class wxRegion : public wxGDIObject
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
/**
|
2008-06-21 02:38:44 +00:00
|
|
|
Default constructor.
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
|
|
|
wxRegion();
|
2008-06-21 02:38:44 +00:00
|
|
|
/**
|
|
|
|
Constructs a rectangular region with the given position and size.
|
|
|
|
*/
|
2008-03-08 14:43:31 +00:00
|
|
|
wxRegion(wxCoord x, wxCoord y, wxCoord width, wxCoord height);
|
2008-06-21 02:38:44 +00:00
|
|
|
/**
|
|
|
|
Constructs a rectangular region from the top left point and the bottom right
|
|
|
|
point.
|
|
|
|
*/
|
2008-03-08 14:43:31 +00:00
|
|
|
wxRegion(const wxPoint& topLeft, const wxPoint& bottomRight);
|
2008-06-21 02:38:44 +00:00
|
|
|
/**
|
|
|
|
Constructs a rectangular region a wxRect object.
|
|
|
|
*/
|
2008-03-08 14:43:31 +00:00
|
|
|
wxRegion(const wxRect& rect);
|
2008-06-21 02:38:44 +00:00
|
|
|
/**
|
|
|
|
Copy constructor, uses @ref overview_refcount.
|
|
|
|
*/
|
2008-03-08 14:43:31 +00:00
|
|
|
wxRegion(const wxRegion& region);
|
2008-06-21 02:38:44 +00:00
|
|
|
/**
|
|
|
|
Constructs a region corresponding to the polygon made of @a n points
|
|
|
|
in the provided array.
|
|
|
|
@a fillStyle parameter may have values @c wxWINDING_RULE or @c wxODDEVEN_RULE.
|
|
|
|
*/
|
|
|
|
wxRegion(size_t n, const wxPoint* points, int fillStyle = wxWINDING_RULE);
|
|
|
|
/**
|
|
|
|
Constructs a region using a bitmap. See Union() for more details.
|
|
|
|
*/
|
2008-03-08 14:43:31 +00:00
|
|
|
wxRegion(const wxBitmap& bmp);
|
2008-06-21 02:38:44 +00:00
|
|
|
/**
|
|
|
|
Constructs a region using the non-transparent pixels of a bitmap. See
|
|
|
|
Union() for more details.
|
|
|
|
*/
|
2008-03-08 14:43:31 +00:00
|
|
|
wxRegion(const wxBitmap& bmp, const wxColour& transColour,
|
|
|
|
int tolerance = 0);
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Destructor.
|
2008-06-21 02:38:44 +00:00
|
|
|
See @ref overview_refcount_destruct "reference-counted object destruction" for
|
2008-03-08 13:52:38 +00:00
|
|
|
more info.
|
|
|
|
*/
|
2008-09-27 11:21:10 +00:00
|
|
|
virtual ~wxRegion();
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Clears the current region.
|
|
|
|
*/
|
2008-09-27 11:21:10 +00:00
|
|
|
virtual void Clear();
|
2008-03-08 13:52:38 +00:00
|
|
|
|
2008-06-21 02:38:44 +00:00
|
|
|
/**
|
|
|
|
Returns a value indicating whether the given point is contained within the region.
|
|
|
|
|
|
|
|
@return The return value is one of @c wxOutRegion and @c wxInRegion.
|
|
|
|
*/
|
|
|
|
wxRegionContain Contains(long& x, long& y) const;
|
|
|
|
/**
|
|
|
|
Returns a value indicating whether the given point is contained within the region.
|
|
|
|
|
|
|
|
@return The return value is one of @c wxOutRegion and @c wxInRegion.
|
|
|
|
*/
|
|
|
|
wxRegionContain Contains(const wxPoint& pt) const;
|
2008-03-08 13:52:38 +00:00
|
|
|
/**
|
|
|
|
Returns a value indicating whether the given rectangle is contained within the
|
|
|
|
region.
|
2008-03-20 13:45:17 +00:00
|
|
|
|
2008-06-21 02:38:44 +00:00
|
|
|
@return One of ::wxOutRegion, ::wxPartRegion or ::wxInRegion.
|
|
|
|
|
|
|
|
@note On Windows, only ::wxOutRegion and ::wxInRegion are returned; a value
|
|
|
|
::wxInRegion then indicates that all or some part of the region is
|
|
|
|
contained in this region.
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
2008-06-21 02:38:44 +00:00
|
|
|
wxRegionContain Contains(long& x, long& y, long& width, long& height) const;
|
|
|
|
/**
|
|
|
|
Returns a value indicating whether the given rectangle is contained within the
|
|
|
|
region.
|
|
|
|
|
|
|
|
@return One of ::wxOutRegion, ::wxPartRegion or ::wxInRegion.
|
|
|
|
|
|
|
|
@note On Windows, only ::wxOutRegion and ::wxInRegion are returned; a value
|
|
|
|
::wxInRegion then indicates that all or some part of the region is
|
|
|
|
contained in this region.
|
|
|
|
*/
|
|
|
|
wxRegionContain Contains(const wxRect& rect) const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Convert the region to a black and white bitmap with the white pixels
|
|
|
|
being inside the region.
|
|
|
|
*/
|
2008-03-09 16:24:26 +00:00
|
|
|
wxBitmap ConvertToBitmap() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
//@{
|
|
|
|
/**
|
|
|
|
Returns the outer bounds of the region.
|
|
|
|
*/
|
|
|
|
void GetBox(wxCoord& x, wxCoord& y, wxCoord& width,
|
2008-03-09 16:24:26 +00:00
|
|
|
wxCoord& height) const;
|
|
|
|
const wxRect GetBox() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
//@}
|
|
|
|
|
|
|
|
/**
|
2008-06-21 02:38:44 +00:00
|
|
|
Finds the intersection of this region and another, rectangular region,
|
|
|
|
specified using position and size.
|
2008-03-20 13:45:17 +00:00
|
|
|
|
2008-05-11 01:38:53 +00:00
|
|
|
@return @true if successful, @false otherwise.
|
2008-03-20 13:45:17 +00:00
|
|
|
|
2008-03-08 13:52:38 +00:00
|
|
|
@remarks Creates the intersection of the two regions, that is, the parts
|
2008-03-09 12:33:59 +00:00
|
|
|
which are in both regions. The result is stored in this
|
|
|
|
region.
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
|
|
|
bool Intersect(wxCoord x, wxCoord y, wxCoord width,
|
|
|
|
wxCoord height);
|
2008-06-21 02:38:44 +00:00
|
|
|
/**
|
|
|
|
Finds the intersection of this region and another, rectangular region.
|
|
|
|
|
|
|
|
@return @true if successful, @false otherwise.
|
|
|
|
|
|
|
|
@remarks Creates the intersection of the two regions, that is, the parts
|
|
|
|
which are in both regions. The result is stored in this
|
|
|
|
region.
|
|
|
|
*/
|
2008-03-08 14:43:31 +00:00
|
|
|
bool Intersect(const wxRect& rect);
|
2008-06-21 02:38:44 +00:00
|
|
|
/**
|
|
|
|
Finds the intersection of this region and another region.
|
|
|
|
|
|
|
|
@return @true if successful, @false otherwise.
|
|
|
|
|
|
|
|
@remarks Creates the intersection of the two regions, that is, the parts
|
|
|
|
which are in both regions. The result is stored in this
|
|
|
|
region.
|
|
|
|
*/
|
2008-03-08 14:43:31 +00:00
|
|
|
bool Intersect(const wxRegion& region);
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Returns @true if the region is empty, @false otherwise.
|
|
|
|
*/
|
2008-09-27 11:21:10 +00:00
|
|
|
virtual bool IsEmpty() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Returns @true if the region is equal to, i.e. covers the same area as,
|
2008-06-21 02:38:44 +00:00
|
|
|
another one.
|
|
|
|
|
|
|
|
@note If both this region and @a region are invalid, they are
|
|
|
|
considered to be equal.
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
2008-03-09 16:24:26 +00:00
|
|
|
bool IsEqual(const wxRegion& region) const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
//@{
|
|
|
|
/**
|
|
|
|
Moves the region by the specified offsets in horizontal and vertical
|
|
|
|
directions.
|
2008-03-20 13:45:17 +00:00
|
|
|
|
2008-05-11 01:38:53 +00:00
|
|
|
@return @true if successful, @false otherwise (the region is unchanged
|
2008-03-09 12:33:59 +00:00
|
|
|
then).
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
|
|
|
bool Offset(wxCoord x, wxCoord y);
|
2008-03-08 14:43:31 +00:00
|
|
|
bool Offset(const wxPoint& pt);
|
2008-03-08 13:52:38 +00:00
|
|
|
//@}
|
|
|
|
|
|
|
|
/**
|
2008-06-21 02:38:44 +00:00
|
|
|
Subtracts a rectangular region from this region.
|
2008-03-20 13:45:17 +00:00
|
|
|
|
2008-05-11 01:38:53 +00:00
|
|
|
@return @true if successful, @false otherwise.
|
2008-03-20 13:45:17 +00:00
|
|
|
|
2008-03-08 13:52:38 +00:00
|
|
|
@remarks This operation combines the parts of 'this' region that are not
|
2008-03-09 12:33:59 +00:00
|
|
|
part of the second region. The result is stored in this
|
|
|
|
region.
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
|
|
|
bool Subtract(const wxRect& rect);
|
2008-06-21 02:38:44 +00:00
|
|
|
/**
|
|
|
|
Subtracts a region from this region.
|
|
|
|
|
|
|
|
@return @true if successful, @false otherwise.
|
|
|
|
|
|
|
|
@remarks This operation combines the parts of 'this' region that are not
|
|
|
|
part of the second region. The result is stored in this
|
|
|
|
region.
|
|
|
|
*/
|
2008-03-08 14:43:31 +00:00
|
|
|
bool Subtract(const wxRegion& region);
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
2008-06-21 02:38:44 +00:00
|
|
|
Finds the union of this region and another, rectangular region, specified using
|
|
|
|
position and size.
|
2008-03-20 13:45:17 +00:00
|
|
|
|
2008-05-11 01:38:53 +00:00
|
|
|
@return @true if successful, @false otherwise.
|
2008-03-20 13:45:17 +00:00
|
|
|
|
2008-03-08 13:52:38 +00:00
|
|
|
@remarks This operation creates a region that combines all of this region
|
2008-03-09 12:33:59 +00:00
|
|
|
and the second region. The result is stored in this
|
|
|
|
region.
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
|
|
|
bool Union(wxCoord x, wxCoord y, wxCoord width, wxCoord height);
|
2008-06-21 02:38:44 +00:00
|
|
|
/**
|
|
|
|
Finds the union of this region and another, rectangular region.
|
|
|
|
|
|
|
|
@return @true if successful, @false otherwise.
|
|
|
|
|
|
|
|
@remarks This operation creates a region that combines all of this region
|
|
|
|
and the second region. The result is stored in this
|
|
|
|
region.
|
|
|
|
*/
|
2008-03-08 14:43:31 +00:00
|
|
|
bool Union(const wxRect& rect);
|
2008-06-21 02:38:44 +00:00
|
|
|
/**
|
|
|
|
Finds the union of this region and another region.
|
|
|
|
|
|
|
|
@return @true if successful, @false otherwise.
|
|
|
|
|
|
|
|
@remarks This operation creates a region that combines all of this region
|
|
|
|
and the second region. The result is stored in this
|
|
|
|
region.
|
|
|
|
*/
|
2008-03-08 14:43:31 +00:00
|
|
|
bool Union(const wxRegion& region);
|
2008-06-21 02:38:44 +00:00
|
|
|
/**
|
|
|
|
Finds the union of this region and the non-transparent pixels of a
|
|
|
|
bitmap. The bitmap's mask is used to determine transparency. If the
|
|
|
|
bitmap doesn't have a mask, the bitmap's full dimensions are used.
|
|
|
|
|
|
|
|
@return @true if successful, @false otherwise.
|
|
|
|
|
|
|
|
@remarks This operation creates a region that combines all of this region
|
|
|
|
and the second region. The result is stored in this
|
|
|
|
region.
|
|
|
|
*/
|
2008-03-08 14:43:31 +00:00
|
|
|
bool Union(const wxBitmap& bmp);
|
2008-06-21 02:38:44 +00:00
|
|
|
/**
|
|
|
|
Finds the union of this region and the non-transparent pixels of a
|
|
|
|
bitmap. Colour to be treated as transparent is specified in the
|
|
|
|
@a transColour argument, along with an optional colour tolerance value.
|
|
|
|
|
|
|
|
@return @true if successful, @false otherwise.
|
|
|
|
|
|
|
|
@remarks This operation creates a region that combines all of this region
|
|
|
|
and the second region. The result is stored in this
|
|
|
|
region.
|
|
|
|
*/
|
2008-03-08 14:43:31 +00:00
|
|
|
bool Union(const wxBitmap& bmp, const wxColour& transColour,
|
|
|
|
int tolerance = 0);
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
2008-06-21 02:38:44 +00:00
|
|
|
Finds the Xor of this region and another, rectangular region, specified using
|
|
|
|
position and size.
|
2008-03-20 13:45:17 +00:00
|
|
|
|
2008-05-11 01:38:53 +00:00
|
|
|
@return @true if successful, @false otherwise.
|
2008-03-20 13:45:17 +00:00
|
|
|
|
2008-03-08 13:52:38 +00:00
|
|
|
@remarks This operation creates a region that combines all of this region
|
2008-03-09 12:33:59 +00:00
|
|
|
and the second region, except for any overlapping
|
|
|
|
areas. The result is stored in this region.
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
|
|
|
bool Xor(wxCoord x, wxCoord y, wxCoord width, wxCoord height);
|
2008-06-21 02:38:44 +00:00
|
|
|
/**
|
|
|
|
Finds the Xor of this region and another, rectangular region.
|
|
|
|
|
|
|
|
@return @true if successful, @false otherwise.
|
|
|
|
|
|
|
|
@remarks This operation creates a region that combines all of this region
|
|
|
|
and the second region, except for any overlapping
|
|
|
|
areas. The result is stored in this region.
|
|
|
|
*/
|
2008-03-08 14:43:31 +00:00
|
|
|
bool Xor(const wxRect& rect);
|
2008-06-21 02:38:44 +00:00
|
|
|
/**
|
|
|
|
Finds the Xor of this region and another region.
|
|
|
|
|
|
|
|
@return @true if successful, @false otherwise.
|
|
|
|
|
|
|
|
@remarks This operation creates a region that combines all of this region
|
|
|
|
and the second region, except for any overlapping
|
|
|
|
areas. The result is stored in this region.
|
|
|
|
*/
|
2008-03-08 14:43:31 +00:00
|
|
|
bool Xor(const wxRegion& region);
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
2008-06-21 02:38:44 +00:00
|
|
|
Assignment operator, using @ref overview_refcount.
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
|
|
|
void operator =(const wxRegion& region);
|
|
|
|
};
|
2008-03-10 15:24:38 +00:00
|
|
|
|
2008-06-21 02:38:44 +00:00
|
|
|
/**
|
|
|
|
An empty region.
|
|
|
|
*/
|
|
|
|
wxRegion wxNullRegion;
|