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.
See wx.PaintEvent for an example of use.
Class Hierarchy¶Inheritance diagram for class
RegionIterator:
Methods Summary¶Default constructor.
An alias for GetHeight
.
Returns the height value for the current region.
Returns the current rectangle.
An alias for GetWidth
.
Returns the width value for the current region.
Returns the x value for the current region.
Returns the y value for the current region.
Returns True
if there are still some rectangles; otherwise returns False
.
Move the iterator to the next rectangle in the region.
Resets the iterator to the beginning of the rectangles.
Returns True
while there are still rectangles available in the iteration.
Returns True
while there are still rectangles available in the iteration.
Possible constructors:
RegionIterator() -> None RegionIterator(region) -> None
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.
__init__ (self)
Default constructor.
None
__init__ (self, region)
Creates an iterator object given a region.
region (wx.Region)
None
An alias for GetHeight
.
int
Returns the height value for the current region.
int
Returns the current rectangle.
An alias for GetWidth
.
int
Returns the width value for the current region.
int
Returns the x value for the current region.
int
Returns the y value for the current region.
int
Returns True
if there are still some rectangles; otherwise returns False
.
bool
Move the iterator to the next rectangle in the region.
None
Reset (self)
Resets the iterator to the beginning of the rectangles.
None
Reset (self, region)
Resets the iterator to the given region.
region (wx.Region)
None
Returns True
while there are still rectangles available in the iteration.
bool
Returns True
while there are still rectangles available in the iteration.
bool
See GetH
See GetHeight
See GetRect
See GetW
See GetWidth
See GetX
See GetY
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4