Region.Spanerator
- class Spanerator
Returns the line segment ends within
Regionthat intersect a horizontal line.Methods
Sets
Region.Spaneratorto return line segments inRegionon scan line.Advances iterator to next span intersecting
Regionwithin line segment provided in constructor.
Methods
- Spanerator.__init__(self: skia.Region.Spanerator, region: skia.Region, y: SupportsInt | SupportsIndex, left: SupportsInt | SupportsIndex, right: SupportsInt | SupportsIndex) None
Sets
Region.Spaneratorto return line segments inRegionon scan line.- Parameters:
region (skia.Region) –
Regionto iteratey (int) – horizontal line to intersect
left (int) – bounds of iteration
right (int) – bounds of iteration
- Returns:
Regioniterator
- Spanerator.next(self: skia.Region.Spanerator, left: SupportsInt | SupportsIndex, right: SupportsInt | SupportsIndex) bool
Advances iterator to next span intersecting
Regionwithin line segment provided in constructor.Returns true if interval was found.
- Parameters:
left (int) – pointer to span start; may be nullptr
right (int) – pointer to span end; may be nullptr
- Returns:
true if interval was found