animator.skia.PathEffect

class animator.skia.PathEffect

Bases: animator.skia.Flattenable

__init__(*args, **kwargs)

Methods

Deserialize(data)

DeserializeAsType(type, data)

Deserialize a flattenable of the given type from a buffer data.

GetFlattenableType()

MakeCompose(outer, inner)

MakeSum(first, second)

__init__(*args, **kwargs)

asADash(self)

Return a skia.PathEffect.DashInfo object with the dash information.

filterPath(self, src, rec, cullR, ctm)

Given a src path (input) and a stroke-rec (input and output), apply this effect to the src path, returning the new path.

getFlattenableType(self)

getTypeName(self)

needsCTM(self)

serialize(self)

class DashInfo

Bases: pybind11_builtins.pybind11_object

Contains information about a dash pattern. This also contains an extra field fType for the dash type.

property fType

The skia.PathEffect.DashType of this dash.

class DashType

Bases: pybind11_builtins.pybind11_object

Members:

kNone_DashType

kDash_DashType

property name
static Deserialize(data: buffer) animator.skia.PathEffect
static DeserializeAsType(type: animator.skia.Flattenable.Type, data: buffer) Union[SkColorFilter, SkBlender, SkImageFilter, SkMaskFilter, SkPathEffect, SkShader]

Deserialize a flattenable of the given type from a buffer data. The return value is correctly typed.

static GetFlattenableType() animator.skia.Flattenable.Type
static MakeCompose(outer: animator.skia.PathEffect, inner: animator.skia.PathEffect) animator.skia.PathEffect
static MakeSum(first: animator.skia.PathEffect, second: animator.skia.PathEffect) animator.skia.PathEffect
class Type

Bases: pybind11_builtins.pybind11_object

Members:

kColorFilter_Type

kBlender_Type

kDrawable_Type

kImageFilter_Type

kMaskFilter_Type

kPathEffect_Type

kShader_Type

property name
asADash(self: animator.skia.PathEffect) animator.skia.PathEffect.DashInfo

Return a skia.PathEffect.DashInfo object with the dash information. The returned object also contains an extra field fType for the dash type.

filterPath(self: animator.skia.PathEffect, src: animator.skia.Path, rec: animator.skia.StrokeRec, cullR: animator.skia.Rect = <animator.skia.Rect object at 0x7f20529d7330>, ctm: animator.skia.Matrix = <animator.skia.Matrix object at 0x7f20500f6f30>) Optional[animator.skia.Path]

Given a src path (input) and a stroke-rec (input and output), apply this effect to the src path, returning the new path.

getFlattenableType(self: animator.skia.Flattenable) animator.skia.Flattenable.Type
getTypeName(self: animator.skia.Flattenable) str
needsCTM(self: animator.skia.PathEffect) bool
serialize(self: animator.skia.Flattenable) animator.skia.Data