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

__init__

Sets Cliperator to return elements of IRect array in Region within clip.

done

Returns true if Cliperator is pointing to final IRect in Region.

next

Advances iterator to next IRect in Region contained by clip.

rect

Returns IRect element in Region, intersected with clip passed to Cliperator constructor.

Methods

Cliperator.__init__(self: skia.Region.Cliperator, region: skia.Region, clip: skia.IRect) None

Sets Cliperator to return elements of IRect array in Region within clip.

Parameters:
Returns:

Region iterator

Cliperator.done(self: skia.Region.Cliperator) bool

Returns true if Cliperator is pointing to final IRect in Region.

Returns:

true if data parsing is complete

Cliperator.next(self: skia.Region.Cliperator) None

Advances iterator to next IRect in Region contained by clip.

Cliperator.rect(self: skia.Region.Cliperator) skia.IRect

Returns IRect element in Region, intersected with clip passed to Cliperator constructor.

Does not return predictable results if Region is empty.

Returns:

part of Region inside clip as IRect