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

kPixelRef_Type

kShaderBase_Type

kUnused_Type

kUnused_Type2

kUnused_Type3

kUnused_Type4

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: 2>
Flattanable.kDrawable_Type = <Type.kDrawable_Type: 1>
Flattanable.kImageFilter_Type = <Type.kImageFilter_Type: 3>
Flattanable.kMaskFilter_Type = <Type.kMaskFilter_Type: 4>
Flattanable.kPathEffect_Type = <Type.kPathEffect_Type: 5>
Flattanable.kPixelRef_Type = <Type.kPixelRef_Type: 6>
Flattanable.kShaderBase_Type = <Type.kShaderBase_Type: 8>
Flattanable.kUnused_Type = <Type.kUnused_Type: 9>
Flattanable.kUnused_Type2 = <Type.kUnused_Type2: 10>
Flattanable.kUnused_Type3 = <Type.kUnused_Type3: 11>
Flattanable.kUnused_Type4 = <Type.kUnused_Type4: 7>