Region.Iterator
- class Iterator
Returns sequence of rectangles, sorted along y-axis, then x-axis, that make up
Region
.Methods
Overloaded function.
Returns true if
Iterator
is pointing to finalIRect
inRegion
.Advances
Iterator
to nextIRect
inRegion
if it is not done.Returns
IRect
element inRegion
.Resets iterator, using the new
Region
.Point
Iterator
to start ofRegion
.Returns
Region
if set; otherwise, returns nullptr.
Methods
- Iterator.__init__(*args, **kwargs)
Overloaded function.
__init__(self: skia.Region.Iterator) -> None
__init__(self: skia.Region.Iterator, region: skia.Region) -> None
Sets
Iterator
to return elements ofIRect
array in region.- region:
Region
to iterateRegion
iterator
- Iterator.done(self: skia.Region.Iterator) bool
Returns true if
Iterator
is pointing to finalIRect
inRegion
.- Returns:
true if data parsing is complete
- Iterator.next(self: skia.Region.Iterator) None
Advances
Iterator
to nextIRect
inRegion
if it is not done.
- Iterator.rect(self: skia.Region.Iterator) skia.IRect
Returns
IRect
element inRegion
.Does not return predictable results if
Region
is empty.- Returns:
part of
Region
asIRect
- Iterator.reset(self: skia.Region.Iterator, region: skia.Region) None
Resets iterator, using the new
Region
.- Parameters:
region –
Region
to iterate
- Iterator.rewind(self: skia.Region.Iterator) bool
Point
Iterator
to start ofRegion
.Returns true if
Region
was set; otherwise, returns false.- Returns:
true if
Region
was set
- Iterator.rgn(self: skia.Region.Iterator) skia.Region
Returns
Region
if set; otherwise, returns nullptr.- Returns:
iterated
Region