Region.Cliperator
- class Cliperator
Returns the sequence of rectangles, sorted along y-axis, then x-axis, that make up
Region
intersected with the specified clip rectangle.Methods
Sets
Cliperator
to return elements ofIRect
array inRegion
within clip.Returns true if
Cliperator
is pointing to finalIRect
inRegion
.Advances iterator to next
IRect
inRegion
contained by clip.Returns
IRect
element inRegion
, intersected with clip passed toCliperator
constructor.
Methods
- Cliperator.__init__(self: skia.Region.Cliperator, region: skia.Region, clip: skia.IRect) None
Sets
Cliperator
to return elements ofIRect
array inRegion
within clip.- Parameters:
region (skia.Region) –
Region
to iterateclip (skia.IRect) – bounds of iteration
- Returns:
Region
iterator
- Cliperator.done(self: skia.Region.Cliperator) bool
Returns true if
Cliperator
is pointing to finalIRect
inRegion
.- Returns:
true if data parsing is complete
- Cliperator.next(self: skia.Region.Cliperator) None
Advances iterator to next
IRect
inRegion
contained by clip.
- Cliperator.rect(self: skia.Region.Cliperator) skia.IRect
Returns
IRect
element inRegion
, intersected with clip passed toCliperator
constructor.Does not return predictable results if
Region
is empty.- Returns:
part of
Region
inside clip asIRect