Attribute.asColor

Returns the attribute cast to pango.attr_color.AttrColor.

This is mainly useful for language bindings.

class Attribute
asColor
()

Return Value

Type: pango.attr_color.AttrColor

The attribute as pango.attr_color.AttrColor, or null if it's not a color attribute