A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://wxpython.org/Phoenix/docs/html/wx.RegionIterator.html below:

wx.RegionIterator — wxPython Phoenix 4.2.4a1 documentation

wx.RegionIterator¶

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¶

__init__

Default constructor.

GetH

An alias for GetHeight .

GetHeight

Returns the height value for the current region.

GetRect

Returns the current rectangle.

GetW

An alias for GetWidth .

GetWidth

Returns the width value for the current region.

GetX

Returns the x value for the current region.

GetY

Returns the y value for the current region.

HaveRects

Returns True if there are still some rectangles; otherwise returns False.

Next

Move the iterator to the next rectangle in the region.

Reset

Resets the iterator to the beginning of the rectangles.

__bool__

Returns True while there are still rectangles available in the iteration.

__nonzero__

Returns True while there are still rectangles available in the iteration.

Properties Summary¶ Class API¶
class wx.RegionIterator(Object)¶

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.


Methods¶
__init__(self, *args, **kw)¶

Overloaded Implementations:

__init__ (self)

Default constructor.

Return type:

None

__init__ (self, region)

Creates an iterator object given a region.

Parameters:

region (wx.Region)

Return type:

None



GetH(self)¶

An alias for GetHeight .

Return type:

int


GetHeight(self)¶

Returns the height value for the current region.

Return type:

int


GetRect(self)¶

Returns the current rectangle.

Return type:

wx.Rect


GetW(self)¶

An alias for GetWidth .

Return type:

int


GetWidth(self)¶

Returns the width value for the current region.

Return type:

int


GetX(self)¶

Returns the x value for the current region.

Return type:

int


GetY(self)¶

Returns the y value for the current region.

Return type:

int


HaveRects(self)¶

Returns True if there are still some rectangles; otherwise returns False.

Return type:

bool


Next(self)¶

Move the iterator to the next rectangle in the region.

Return type:

None


Reset(self, *args, **kw)¶

Overloaded Implementations:

Reset (self)

Resets the iterator to the beginning of the rectangles.

Return type:

None

Reset (self, region)

Resets the iterator to the given region.

Parameters:

region (wx.Region)

Return type:

None



__bool__(self)¶

Returns True while there are still rectangles available in the iteration.

Return type:

bool


__nonzero__(self)¶

Returns True while there are still rectangles available in the iteration.

Return type:

bool


Properties¶
H¶

See GetH


Height¶

See GetHeight


Rect¶

See GetRect


W¶

See GetW


Width¶

See GetWidth


X¶

See GetX


Y¶

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