Path.RawIter
- class RawIter
Iterates through verb array, and associated
Point
array and conic weight.verb array,
Point
array, and conic weight are returned unaltered.Methods
Overloaded function.
Returns conic weight if
next()
returnedkConic_Verb
.Sets
RawIter
to return elements of verb array,Point
array, and conic weight in path.
Methods
- RawIter.__init__(*args, **kwargs)
Overloaded function.
__init__(self: skia.Path.RawIter) -> None
__init__(self: skia.Path.RawIter, path: skia.Path) -> None
- RawIter.conicWeight(self: skia.Path.RawIter) float
Returns conic weight if
next()
returnedkConic_Verb
.If
next()
has not been called, ornext()
did not returnkConic_Verb
, result is undefined.- Returns:
conic weight for conic
Point
returned bynext()
- RawIter.next(self: skia.Path.RawIter) tuple
Returns next
Verb
in verb array, and advancesRawIter
.When verb array is exhausted, returns
kDone_Verb
.Zero to four
Point
are stored in pts, depending on the returnedVerb
.- Returns:
tuple of the following: next
Verb
from verb array; and storage forPoint
data describing returnedVerb
- Return type:
Tuple[skia.Path.Verb,List[skia.Point]]
- RawIter.peek(self: skia.Path.RawIter) skia.Path.Verb
Returns next
Verb
, but does not advanceRawIter
.- Returns:
next
Verb
from verb array
- RawIter.setPath(self: skia.Path.RawIter, path: skia.Path) None
Sets
RawIter
to return elements of verb array,Point
array, and conic weight in path.- Parameters:
path (skia.Path) –
Path
to iterate