2006-11-10 14:58:43 -05:00
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
%% Name: region.tex
|
|
|
|
%% Purpose: wxRegion documentation
|
|
|
|
%% Author: wxTeam
|
|
|
|
%% Created:
|
|
|
|
%% RCS-ID: $Id$
|
|
|
|
%% Copyright: (c) wxTeam
|
|
|
|
%% License: wxWindows license
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
|
1998-05-20 10:25:30 -04:00
|
|
|
\section{\class{wxRegion}}\label{wxregion}
|
|
|
|
|
2006-11-21 04:27:10 -05:00
|
|
|
A wxRegion represents a simple or complex region on a device context or window.
|
|
|
|
|
|
|
|
This class uses \helpref{reference counting and copy-on-write}{trefcount}
|
|
|
|
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.
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxGDIObject}{wxgdiobject}\\
|
|
|
|
\helpref{wxObject}{wxobject}
|
|
|
|
|
1999-02-15 15:41:29 -05:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/region.h>
|
|
|
|
|
1998-11-04 17:16:10 -05:00
|
|
|
\wxheading{See also}
|
|
|
|
|
|
|
|
\helpref{wxRegionIterator}{wxregioniterator}
|
|
|
|
|
1998-05-20 10:25:30 -04:00
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
2006-09-25 07:47:23 -04:00
|
|
|
|
2004-09-24 06:57:56 -04:00
|
|
|
\membersection{wxRegion::wxRegion}\label{wxregionctor}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\func{}{wxRegion}{\void}
|
|
|
|
|
|
|
|
Default constructor.
|
|
|
|
|
2002-01-31 11:00:13 -05:00
|
|
|
\func{}{wxRegion}{\param{wxCoord}{ x}, \param{wxCoord}{ y}, \param{wxCoord}{ width}, \param{wxCoord}{ height}}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
Constructs a rectangular region with the given position and size.
|
|
|
|
|
|
|
|
\func{}{wxRegion}{\param{const wxPoint\&}{ topLeft}, \param{const wxPoint\&}{ bottomRight}}
|
|
|
|
|
|
|
|
Constructs a rectangular region from the top left point and the bottom right point.
|
|
|
|
|
|
|
|
\func{}{wxRegion}{\param{const wxRect\&}{ rect}}
|
|
|
|
|
|
|
|
Constructs a rectangular region a wxRect object.
|
|
|
|
|
|
|
|
\func{}{wxRegion}{\param{const wxRegion\&}{ region}}
|
|
|
|
|
2006-10-18 13:23:42 -04:00
|
|
|
Copy constructor, uses \helpref{reference counting}{trefcount}.
|
1998-05-20 10:25:30 -04:00
|
|
|
|
2001-08-27 10:56:55 -04:00
|
|
|
\func{}{wxRegion}{\param{size\_t}{ n}, \param{const wxPoint }{*points}, \param{int }{fillStyle = wxWINDING\_RULE}}
|
|
|
|
|
|
|
|
Constructs a region corresponding to the polygon made of {\it n} points in the
|
2003-03-28 18:05:05 -05:00
|
|
|
provided array. {\it fillStyle} parameter may have values
|
2001-08-27 10:56:55 -04:00
|
|
|
{\tt wxWINDING\_RULE} or {\tt wxODDEVEN\_RULE}.
|
|
|
|
|
2004-06-03 17:13:52 -04:00
|
|
|
\func{}{wxRegion}{\param{const wxBitmap\&}{ bmp}}
|
|
|
|
|
2003-06-22 18:20:40 -04:00
|
|
|
\func{}{wxRegion}{\param{const wxBitmap\&}{ bmp},
|
2004-06-03 17:13:52 -04:00
|
|
|
\param{const wxColour\&}{ transColour},
|
2006-09-25 07:47:23 -04:00
|
|
|
\param{int}{ tolerance = 0}}
|
2003-03-28 18:05:05 -05:00
|
|
|
|
|
|
|
Constructs a region using the non-transparent pixels of a bitmap. See
|
|
|
|
\helpref{Union}{wxregionunion} for more details.
|
|
|
|
|
|
|
|
|
2006-09-25 07:47:23 -04:00
|
|
|
|
2004-09-24 06:57:56 -04:00
|
|
|
\membersection{wxRegion::\destruct{wxRegion}}\label{wxregiondtor}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\func{}{\destruct{wxRegion}}{\void}
|
|
|
|
|
|
|
|
Destructor.
|
2006-10-30 14:26:48 -05:00
|
|
|
See \helpref{reference-counted object destruction}{refcountdestruct} for more info.
|
1998-05-20 10:25:30 -04:00
|
|
|
|
2006-09-25 07:47:23 -04:00
|
|
|
|
1998-05-20 10:25:30 -04:00
|
|
|
\membersection{wxRegion::Clear}\label{wxregionclear}
|
|
|
|
|
|
|
|
\func{void}{Clear}{\void}
|
|
|
|
|
|
|
|
Clears the current region.
|
|
|
|
|
2006-09-25 07:47:23 -04:00
|
|
|
|
1998-05-20 10:25:30 -04:00
|
|
|
\membersection{wxRegion::Contains}\label{wxregioncontains}
|
|
|
|
|
|
|
|
\constfunc{wxRegionContain}{Contains}{\param{long\& }{x}, \param{long\& }{y}}
|
|
|
|
|
|
|
|
Returns a value indicating whether the given point is contained within the region.
|
|
|
|
|
|
|
|
\constfunc{wxRegionContain}{Contains}{\param{const wxPoint\&}{ pt}}
|
|
|
|
|
|
|
|
Returns a value indicating whether the given point is contained within the region.
|
|
|
|
|
|
|
|
\constfunc{wxRegionContain}{Contains}{\param{long\& }{x}, \param{long\& }{y}, \param{long\& }{width}, \param{long\& }{height}}
|
|
|
|
|
|
|
|
Returns a value indicating whether the given rectangle is contained within the region.
|
|
|
|
|
|
|
|
\constfunc{wxRegionContain}{Contains}{\param{const wxRect\& }{rect}}
|
|
|
|
|
|
|
|
Returns a value indicating whether the given rectangle is contained within the region.
|
|
|
|
|
|
|
|
\wxheading{Return value}
|
|
|
|
|
|
|
|
The return value is one of wxOutRegion, wxPartRegion and wxInRegion.
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
2006-09-25 07:47:23 -04:00
|
|
|
|
2003-03-28 18:05:05 -05:00
|
|
|
\membersection{wxRegion::ConvertToBitmap}\label{wxregionconverttobitmap}
|
|
|
|
|
|
|
|
\constfunc{wxBitmap}{ConvertToBitmap}{}
|
|
|
|
|
2003-05-03 13:56:30 -04:00
|
|
|
Convert the region to a black and white bitmap with the white pixels
|
2003-03-28 18:05:05 -05:00
|
|
|
being inside the region.
|
|
|
|
|
2006-09-25 07:47:23 -04:00
|
|
|
|
1998-05-20 10:25:30 -04:00
|
|
|
\membersection{wxRegion::GetBox}\label{wxregiongetbox}
|
|
|
|
|
2005-02-06 13:25:54 -05:00
|
|
|
\constfunc{void}{GetBox}{\param{wxCoord\& }{x}, \param{wxCoord\& }{y}, \param{wxCoord\& }{width}, \param{wxCoord\& }{height}}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
Returns the outer bounds of the region.
|
|
|
|
|
|
|
|
\constfunc{wxRect}{GetBox}{\void}
|
|
|
|
|
|
|
|
Returns the outer bounds of the region.
|
|
|
|
|
2006-09-25 07:47:23 -04:00
|
|
|
|
1998-05-20 10:25:30 -04:00
|
|
|
\membersection{wxRegion::Intersect}\label{wxregionintersect}
|
|
|
|
|
2002-01-31 11:00:13 -05:00
|
|
|
\func{bool}{Intersect}{\param{wxCoord}{ x}, \param{wxCoord}{ y}, \param{wxCoord}{ width}, \param{wxCoord}{ height}}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
Finds the intersection of this region and another, rectangular region, specified using position and size.
|
|
|
|
|
|
|
|
\func{bool}{Intersect}{\param{const wxRect\&}{ rect}}
|
|
|
|
|
|
|
|
Finds the intersection of this region and another, rectangular region.
|
|
|
|
|
|
|
|
\func{bool}{Intersect}{\param{const wxRegion\&}{ region}}
|
|
|
|
|
|
|
|
Finds the intersection of this region and another region.
|
|
|
|
|
|
|
|
\wxheading{Return value}
|
|
|
|
|
2003-01-17 19:16:34 -05:00
|
|
|
{\tt true} if successful, {\tt false} otherwise.
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\wxheading{Remarks}
|
|
|
|
|
|
|
|
Creates the intersection of the two regions, that is, the parts which are in both regions. The result
|
|
|
|
is stored in this region.
|
|
|
|
|
2006-09-25 07:47:23 -04:00
|
|
|
|
1998-05-20 10:25:30 -04:00
|
|
|
\membersection{wxRegion::IsEmpty}\label{wxregionisempty}
|
|
|
|
|
|
|
|
\constfunc{bool}{IsEmpty}{\void}
|
|
|
|
|
2003-01-17 19:16:34 -05:00
|
|
|
Returns {\tt true} if the region is empty, {\tt false} otherwise.
|
1998-05-20 10:25:30 -04:00
|
|
|
|
2006-09-25 07:47:23 -04:00
|
|
|
|
|
|
|
\membersection{wxRegion::IsEqual}\label{wxregionisequal}
|
|
|
|
|
|
|
|
\constfunc{bool}{IsEqual}{\param{const wxRegion\& }{region}}
|
|
|
|
|
|
|
|
Returns {\tt true} if the region is equal to, i.e. covers the same area as,
|
|
|
|
another one. Note that if both this region and \arg{region} are invalid, they
|
|
|
|
are considered to be equal.
|
|
|
|
|
|
|
|
|
2004-10-22 15:15:35 -04:00
|
|
|
\membersection{wxRegion::Subtract}\label{wxregionsubtract}
|
1999-04-13 04:14:19 -04:00
|
|
|
|
1998-05-20 10:25:30 -04:00
|
|
|
\func{bool}{Subtract}{\param{const wxRect\&}{ rect}}
|
|
|
|
|
|
|
|
Subtracts a rectangular region from this region.
|
|
|
|
|
|
|
|
\func{bool}{Subtract}{\param{const wxRegion\&}{ region}}
|
|
|
|
|
|
|
|
Subtracts a region from this region.
|
|
|
|
|
|
|
|
\wxheading{Return value}
|
|
|
|
|
2003-01-17 19:16:34 -05:00
|
|
|
{\tt true} if successful, {\tt false} otherwise.
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\wxheading{Remarks}
|
|
|
|
|
|
|
|
This operation combines the parts of 'this' region that are not part of the second region.
|
|
|
|
The result is stored in this region.
|
|
|
|
|
2006-09-25 07:47:23 -04:00
|
|
|
|
2002-01-31 11:00:13 -05:00
|
|
|
\membersection{wxRegion::Offset}\label{wxregionoffset}
|
|
|
|
|
|
|
|
\func{bool}{Offset}{\param{wxCoord}{ x}, \param{wxCoord}{ y}}
|
|
|
|
|
2006-09-25 07:47:23 -04:00
|
|
|
\func{bool}{Offset}{\param{const wxPoint\& }{ pt}}
|
|
|
|
|
2002-01-31 11:00:13 -05:00
|
|
|
Moves the region by the specified offsets in horizontal and vertical
|
|
|
|
directions.
|
|
|
|
|
|
|
|
\wxheading{Return value}
|
|
|
|
|
2003-01-17 19:16:34 -05:00
|
|
|
{\tt true} if successful, {\tt false} otherwise (the region is unchanged then).
|
2002-01-31 11:00:13 -05:00
|
|
|
|
2006-09-25 07:47:23 -04:00
|
|
|
|
1998-05-20 10:25:30 -04:00
|
|
|
\membersection{wxRegion::Union}\label{wxregionunion}
|
|
|
|
|
2002-01-31 11:00:13 -05:00
|
|
|
\func{bool}{Union}{\param{wxCoord}{ x}, \param{wxCoord}{ y}, \param{wxCoord}{ width}, \param{wxCoord}{ height}}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
Finds the union of this region and another, rectangular region, specified using position and size.
|
|
|
|
|
|
|
|
\func{bool}{Union}{\param{const wxRect\&}{ rect}}
|
|
|
|
|
|
|
|
Finds the union of this region and another, rectangular region.
|
|
|
|
|
|
|
|
\func{bool}{Union}{\param{const wxRegion\&}{ region}}
|
|
|
|
|
|
|
|
Finds the union of this region and another region.
|
|
|
|
|
2004-06-03 17:13:52 -04:00
|
|
|
\func{bool}{Union}{\param{const wxBitmap\&}{ bmp}}
|
|
|
|
|
2005-04-08 10:34:30 -04:00
|
|
|
Finds the union of this region and the non-transparent pixels of a
|
2004-06-03 17:13:52 -04:00
|
|
|
bitmap. Bitmap's mask is used to determine transparency. If the bitmap doesn't
|
|
|
|
have a mask, solid rectangle of bitmap's dimensions is used.
|
|
|
|
|
2003-06-22 18:20:40 -04:00
|
|
|
\func{bool}{Union}{\param{const wxBitmap\&}{ bmp},
|
2004-06-03 17:13:52 -04:00
|
|
|
\param{const wxColour\&}{ transColour},
|
2006-09-25 07:47:23 -04:00
|
|
|
\param{int}{ tolerance = 0}}
|
2003-03-28 18:05:05 -05:00
|
|
|
|
2005-04-08 10:34:30 -04:00
|
|
|
Finds the union of this region and the non-transparent pixels of a
|
2004-06-03 17:13:52 -04:00
|
|
|
bitmap. Colour to be treated as transparent is specified in the
|
|
|
|
\arg{transColour} argument, along with an
|
2003-03-28 18:05:05 -05:00
|
|
|
optional colour tolerance value.
|
|
|
|
|
1998-05-20 10:25:30 -04:00
|
|
|
\wxheading{Return value}
|
|
|
|
|
2003-01-17 19:16:34 -05:00
|
|
|
{\tt true} if successful, {\tt false} otherwise.
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\wxheading{Remarks}
|
|
|
|
|
|
|
|
This operation creates a region that combines all of this region and the second region.
|
|
|
|
The result is stored in this region.
|
|
|
|
|
2006-09-25 07:47:23 -04:00
|
|
|
|
1998-05-20 10:25:30 -04:00
|
|
|
\membersection{wxRegion::Xor}\label{wxregionxor}
|
|
|
|
|
2002-01-31 11:00:13 -05:00
|
|
|
\func{bool}{Xor}{\param{wxCoord}{ x}, \param{wxCoord}{ y}, \param{wxCoord}{ width}, \param{wxCoord}{ height}}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
Finds the Xor of this region and another, rectangular region, specified using position and size.
|
|
|
|
|
|
|
|
\func{bool}{Xor}{\param{const wxRect\&}{ rect}}
|
|
|
|
|
|
|
|
Finds the Xor of this region and another, rectangular region.
|
|
|
|
|
|
|
|
\func{bool}{Xor}{\param{const wxRegion\&}{ region}}
|
|
|
|
|
|
|
|
Finds the Xor of this region and another region.
|
|
|
|
|
|
|
|
\wxheading{Return value}
|
|
|
|
|
2003-01-17 19:16:34 -05:00
|
|
|
{\tt true} if successful, {\tt false} otherwise.
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\wxheading{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.
|
|
|
|
|
2006-09-25 07:47:23 -04:00
|
|
|
|
1998-05-20 10:25:30 -04:00
|
|
|
\membersection{wxRegion::operator $=$}\label{wxregionassign}
|
|
|
|
|
|
|
|
\func{void}{operator $=$}{\param{const wxRegion\&}{ region}}
|
|
|
|
|
2006-10-18 13:23:42 -04:00
|
|
|
Assignment operator, using \helpref{reference counting}{trefcount}.
|
|
|
|
|
|
|
|
|
1998-05-20 10:25:30 -04:00
|
|
|
|
1998-11-04 17:16:10 -05:00
|
|
|
\section{\class{wxRegionIterator}}\label{wxregioniterator}
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
2002-04-08 12:46:27 -04:00
|
|
|
See \helpref{wxPaintEvent}{wxpaintevent} for an example of use.
|
1998-11-04 17:16:10 -05:00
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxObject}{wxobject}
|
|
|
|
|
1999-02-15 15:41:29 -05:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/region.h>
|
|
|
|
|
1998-11-04 17:16:10 -05:00
|
|
|
\wxheading{See also}
|
|
|
|
|
2002-04-08 12:46:27 -04:00
|
|
|
\helpref{wxPaintEvent}{wxpaintevent}
|
1998-11-04 17:16:10 -05:00
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
2006-09-25 07:47:23 -04:00
|
|
|
|
2004-09-24 06:57:56 -04:00
|
|
|
\membersection{wxRegionIterator::wxRegionIterator}\label{wxregioniteratorctor}
|
1998-11-04 17:16:10 -05:00
|
|
|
|
|
|
|
\func{}{wxRegionIterator}{\void}
|
|
|
|
|
|
|
|
Default constructor.
|
|
|
|
|
|
|
|
\func{}{wxRegionIterator}{\param{const wxRegion\&}{ region}}
|
|
|
|
|
|
|
|
Creates an iterator object given a region.
|
|
|
|
|
2006-09-25 07:47:23 -04:00
|
|
|
|
2004-09-24 06:57:56 -04:00
|
|
|
\membersection{wxRegionIterator::GetX}\label{wxregioniteratorgetx}
|
1998-11-04 17:16:10 -05:00
|
|
|
|
2002-01-31 11:00:13 -05:00
|
|
|
\constfunc{wxCoord}{GetX}{\void}
|
1998-11-04 17:16:10 -05:00
|
|
|
|
|
|
|
Returns the x value for the current region.
|
|
|
|
|
2006-09-25 07:47:23 -04:00
|
|
|
|
2004-09-24 06:57:56 -04:00
|
|
|
\membersection{wxRegionIterator::GetY}\label{wxregioniteratorgety}
|
1998-11-04 17:16:10 -05:00
|
|
|
|
2002-01-31 11:00:13 -05:00
|
|
|
\constfunc{wxCoord}{GetY}{\void}
|
1998-11-04 17:16:10 -05:00
|
|
|
|
|
|
|
Returns the y value for the current region.
|
|
|
|
|
2006-09-25 07:47:23 -04:00
|
|
|
|
2004-09-24 06:57:56 -04:00
|
|
|
\membersection{wxRegionIterator::GetW}\label{wxregioniteratorgetw}
|
1998-11-04 17:16:10 -05:00
|
|
|
|
2002-01-31 11:00:13 -05:00
|
|
|
\constfunc{wxCoord}{GetW}{\void}
|
1998-11-04 17:16:10 -05:00
|
|
|
|
|
|
|
An alias for GetWidth.
|
|
|
|
|
2006-09-25 07:47:23 -04:00
|
|
|
|
2005-02-06 12:27:04 -05:00
|
|
|
\membersection{wxRegionIterator::GetHeight}\label{wxregioniteratorgetheight}
|
1998-11-04 17:16:10 -05:00
|
|
|
|
2005-02-06 12:27:04 -05:00
|
|
|
\constfunc{wxCoord}{GetHeight}{\void}
|
1998-11-04 17:16:10 -05:00
|
|
|
|
2005-02-06 12:27:04 -05:00
|
|
|
Returns the height value for the current region.
|
1998-11-04 17:16:10 -05:00
|
|
|
|
2006-09-25 07:47:23 -04:00
|
|
|
|
2004-09-24 06:57:56 -04:00
|
|
|
\membersection{wxRegionIterator::GetH}\label{wxregioniteratorgeth}
|
1998-11-04 17:16:10 -05:00
|
|
|
|
2002-01-31 11:00:13 -05:00
|
|
|
\constfunc{wxCoord}{GetH}{\void}
|
1998-11-04 17:16:10 -05:00
|
|
|
|
|
|
|
An alias for GetHeight.
|
|
|
|
|
2006-09-25 07:47:23 -04:00
|
|
|
|
2004-09-24 06:57:56 -04:00
|
|
|
\membersection{wxRegionIterator::GetRect}\label{wxregioniteratorgetrect}
|
1998-11-04 17:16:10 -05:00
|
|
|
|
|
|
|
\constfunc{wxRect}{GetRect}{\void}
|
|
|
|
|
|
|
|
Returns the current rectangle.
|
|
|
|
|
2006-09-25 07:47:23 -04:00
|
|
|
|
2005-02-06 12:27:04 -05:00
|
|
|
\membersection{wxRegionIterator::GetWidth}\label{wxregioniteratorgetwidth}
|
|
|
|
|
|
|
|
\constfunc{wxCoord}{GetWidth}{\void}
|
|
|
|
|
|
|
|
Returns the width value for the current region.
|
|
|
|
|
2006-09-25 07:47:23 -04:00
|
|
|
|
2004-09-24 06:57:56 -04:00
|
|
|
\membersection{wxRegionIterator::HaveRects}\label{wxregioniteratorhaverects}
|
1998-11-04 17:16:10 -05:00
|
|
|
|
|
|
|
\constfunc{bool}{HaveRects}{\void}
|
|
|
|
|
2003-01-17 19:16:34 -05:00
|
|
|
Returns {\tt true} if there are still some rectangles; otherwise returns {\tt false}.
|
1998-11-04 17:16:10 -05:00
|
|
|
|
2006-09-25 07:47:23 -04:00
|
|
|
|
2004-09-24 06:57:56 -04:00
|
|
|
\membersection{wxRegionIterator::Reset}\label{wxregioniteratorreset}
|
1998-11-04 17:16:10 -05:00
|
|
|
|
|
|
|
\func{void}{Reset}{\void}
|
|
|
|
|
|
|
|
Resets the iterator to the beginning of the rectangles.
|
|
|
|
|
|
|
|
\func{void}{Reset}{\param{const wxRegion\&}{ region}}
|
|
|
|
|
|
|
|
Resets the iterator to the given region.
|
|
|
|
|
2006-09-25 07:47:23 -04:00
|
|
|
|
2004-09-24 06:57:56 -04:00
|
|
|
\membersection{wxRegionIterator::operator $++$}\label{wxregioniteratorinc}
|
1998-11-04 17:16:10 -05:00
|
|
|
|
|
|
|
\func{void}{operator $++$}{\void}
|
|
|
|
|
|
|
|
Increment operator. Increments the iterator to the next region.
|
|
|
|
|
1999-12-25 15:34:56 -05:00
|
|
|
\pythonnote{A wxPython alias for this operator is called {\tt Next}.}
|
1999-02-19 02:58:02 -05:00
|
|
|
|
2006-09-25 07:47:23 -04:00
|
|
|
|
2004-09-24 06:57:56 -04:00
|
|
|
\membersection{wxRegionIterator::operator bool}\label{wxregioniteratorbool}
|
1998-11-04 17:16:10 -05:00
|
|
|
|
|
|
|
\constfunc{}{operator bool}{\void}
|
|
|
|
|
2003-01-17 19:16:34 -05:00
|
|
|
Returns {\tt true} if there are still some rectangles; otherwise returns {\tt false}.
|
1998-11-04 17:16:10 -05:00
|
|
|
|
|
|
|
You can use this to test the iterator object as if it were of type bool.
|
2006-11-12 11:40:19 -05:00
|
|
|
|