Attribute.asShape

Returns the attribute cast to pango.attr_shape.AttrShape.

This is mainly useful for language bindings.

class Attribute
asShape
()

Return Value

Type: pango.attr_shape.AttrShape

The attribute as pango.attr_shape.AttrShape, or null if it's not a shape attribute