Flattanable

class Flattanable

Flattenable is the base class for objects that need to be flattened into a data stream for either transport or as part of the key to the font cache.

Classes

Type

Members:

Methods

Deserialize

__init__

getFlattenableType

getTypeName

Returns the name of the object's class.

ref

Increment the reference count.

serialize

unique

May return true if the caller is the only owner.

unref

Decrement the reference count.

Attributes

kColorFilter_Type

kDrawLooper_Type

kDrawable_Type

kImageFilter_Type

kMaskFilter_Type

kPathEffect_Type

Methods

static Flattanable.Deserialize(type: skia.Flattanable.Type, b: buffer) skia.Flattanable
Flattanable.__init__(*args, **kwargs)
Flattanable.getFlattenableType(self: skia.Flattanable) skia.Flattanable.Type
Flattanable.getTypeName(self: skia.Flattanable) str

Returns the name of the object’s class.

Implemented in Drawable.

Flattanable.ref(self: skia.RefCntBase) None

Increment the reference count.

Must be balanced by a call to unref().

Flattanable.serialize(self: skia.Flattanable) skia.Data
Flattanable.unique(self: skia.RefCntBase) bool

May return true if the caller is the only owner.

Ensures that all previous owner’s actions are complete.

Flattanable.unref(self: skia.RefCntBase) None

Decrement the reference count.

If the reference count is 1 before the decrement, then delete the object. Note that if this is the case, then the object needs to have been allocated via new, and not on the stack.

Attributes

Flattanable.kColorFilter_Type = <Type.kColorFilter_Type: 0>
Flattanable.kDrawLooper_Type = <Type.kDrawLooper_Type: 3>
Flattanable.kDrawable_Type = <Type.kDrawable_Type: 2>
Flattanable.kImageFilter_Type = <Type.kImageFilter_Type: 4>
Flattanable.kMaskFilter_Type = <Type.kMaskFilter_Type: 5>
Flattanable.kPathEffect_Type = <Type.kPathEffect_Type: 6>