animator.skia.StrokeRec¶
- class animator.skia.StrokeRec¶
Bases:
pybind11_builtins.pybind11_object- __init__(*args, **kwargs)¶
Overloaded function.
__init__(self: animator.skia.StrokeRec, style: animator.skia.StrokeRec.InitStyle) -> None
__init__(self: animator.skia.StrokeRec, paint: animator.skia.Paint, style: animator.skia.Paint.Style, resScale: float = 1) -> None
__init__(self: animator.skia.StrokeRec, paint: animator.skia.Paint, resScale: float = 1) -> None
Methods
GetInflationRadius(*args, **kwargs)Overloaded function.
__init__(*args, **kwargs)Overloaded function.
applyAndGetPath(self, src)Apply the stroke parameters to the src path and return the result.
applyToPaint(self, paint)applyToPath(self, dst, src)getCap(self)getInflationRadius(self)getJoin(self)getMiter(self)getPaint(self)Apply the stroke parameters to a paint and return it.
getResScale(self)getStyle(self)getWidth(self)hasEqualEffect(self, other)isFillStyle(self)isHairlineStyle(self)needToApply(self)setFillStyle(self)setHairlineStyle(self)setResScale(self, rs)setStrokeParams(self, cap, join, miterLimit)setStrokeStyle(self, width[, strokeAndFill])Attributes
kStyleCount- static GetInflationRadius(*args, **kwargs)¶
Overloaded function.
GetInflationRadius(paint: animator.skia.Paint, style: animator.skia.Paint.Style) -> float
GetInflationRadius(join: animator.skia.Paint.Join, miterLimit: float, cap: animator.skia.Paint.Cap, strokeWidth: float) -> float
- class InitStyle¶
Bases:
pybind11_builtins.pybind11_objectMembers:
kHairline_InitStyle
kFill_InitStyle
- property name¶
- class Style¶
Bases:
pybind11_builtins.pybind11_objectMembers:
kHairline_Style
kFill_Style
kStroke_Style
kStrokeAndFill_Style
- property name¶
- applyAndGetPath(self: animator.skia.StrokeRec, src: animator.skia.Path) animator.skia.Path¶
Apply the stroke parameters to the src path and return the result.
- applyToPaint(self: animator.skia.StrokeRec, paint: animator.skia.Paint) None¶
- applyToPath(self: animator.skia.StrokeRec, dst: animator.skia.Path, src: animator.skia.Path) bool¶
- getCap(self: animator.skia.StrokeRec) animator.skia.Paint.Cap¶
- getInflationRadius(self: animator.skia.StrokeRec) float¶
- getJoin(self: animator.skia.StrokeRec) animator.skia.Paint.Join¶
- getMiter(self: animator.skia.StrokeRec) float¶
- getPaint(self: animator.skia.StrokeRec) animator.skia.Paint¶
Apply the stroke parameters to a paint and return it.
- getResScale(self: animator.skia.StrokeRec) float¶
- getStyle(self: animator.skia.StrokeRec) animator.skia.StrokeRec.Style¶
- getWidth(self: animator.skia.StrokeRec) float¶
- hasEqualEffect(self: animator.skia.StrokeRec, other: animator.skia.StrokeRec) bool¶
- isFillStyle(self: animator.skia.StrokeRec) bool¶
- isHairlineStyle(self: animator.skia.StrokeRec) bool¶
- needToApply(self: animator.skia.StrokeRec) bool¶
- setFillStyle(self: animator.skia.StrokeRec) None¶
- setHairlineStyle(self: animator.skia.StrokeRec) None¶
- setResScale(self: animator.skia.StrokeRec, rs: float) None¶
- setStrokeParams(self: animator.skia.StrokeRec, cap: animator.skia.Paint.Cap, join: animator.skia.Paint.Join, miterLimit: float) None¶
- setStrokeStyle(self: animator.skia.StrokeRec, width: float, strokeAndFill: bool = False) None¶