animator.skia.PathMeasure¶
- class animator.skia.PathMeasure¶
Bases:
pybind11_builtins.pybind11_object- __init__(*args, **kwargs)¶
Overloaded function.
__init__(self: animator.skia.PathMeasure) -> None
__init__(self: animator.skia.PathMeasure, path: animator.skia.Path, forceClosed: bool = False, resScale: float = 1) -> None
Methods
__init__(*args, **kwargs)Overloaded function.
getLength(self)getMatrix(self, distance, flags)Pins distance to 0 <= distance <= getLength(), and returns the corresponding matrix (by calling getPosTan).
getPosTan(self, distance)Pins distance to 0 <= distance <= getLength(), and returns the corresponding position and tangent.
getSegment(self, startD, stopD[, ...])Given a start and stop distance, return the intervening segment(s).
isClosed(self)nextContour(self)setPath(self, path[, forceClosed])- class MatrixFlags¶
Bases:
pybind11_builtins.pybind11_objectMembers:
kGetPosition_MatrixFlag
kGetTangent_MatrixFlag
kGetPosAndTan_MatrixFlag
- property name¶
- getLength(self: animator.skia.PathMeasure) float¶
- getMatrix(self: animator.skia.PathMeasure, distance: float, flags: animator.skia.PathMeasure.MatrixFlags = <MatrixFlags.kGetPosAndTan_MatrixFlag: 3>) animator.skia.Matrix¶
Pins distance to 0 <= distance <= getLength(), and returns the corresponding matrix (by calling getPosTan).
- getPosTan(self: animator.skia.PathMeasure, distance: float) tuple¶
Pins distance to 0 <= distance <= getLength(), and returns the corresponding position and tangent.
- getSegment(self: animator.skia.PathMeasure, startD: float, stopD: float, startWithMoveTo: bool = True) animator.skia.Path¶
Given a start and stop distance, return the intervening segment(s).
- isClosed(self: animator.skia.PathMeasure) bool¶
- nextContour(self: animator.skia.PathMeasure) bool¶
- setPath(self: animator.skia.PathMeasure, path: animator.skia.Path, forceClosed: bool = False) None¶