Pango.Attribute¶
record (struct)
The PangoAttribute structure represents the common portions of all
attributes.
Particular types of attributes include this structure as their initial
portion. The common portion of the attribute holds the range to which
the value in the type-specific part of the attribute applies and should
be initialized using Attribute.init. By default, an attribute
will have an all-inclusive range of [0,G_MAXUINT].
Methods¶
as_color¶
Returns the attribute cast to PangoAttrColor.
This is mainly useful for language bindings.
as_float¶
Returns the attribute cast to PangoAttrFloat.
This is mainly useful for language bindings.
as_font_desc¶
Returns the attribute cast to PangoAttrFontDesc.
This is mainly useful for language bindings.
as_font_features¶
Returns the attribute cast to PangoAttrFontFeatures.
This is mainly useful for language bindings.
as_int¶
Returns the attribute cast to PangoAttrInt.
This is mainly useful for language bindings.
as_language¶
Returns the attribute cast to PangoAttrLanguage.
This is mainly useful for language bindings.
as_shape¶
Returns the attribute cast to PangoAttrShape.
This is mainly useful for language bindings.
as_size¶
Returns the attribute cast to PangoAttrSize.
This is mainly useful for language bindings.
as_string¶
Returns the attribute cast to PangoAttrString.
This is mainly useful for language bindings.
copy¶
Make a copy of an attribute.
destroy¶
Destroy a PangoAttribute and free all associated memory.
equal¶
Compare two attributes for equality.
This compares only the actual value of the two attributes and not the ranges that the attributes apply to.
Parameters:
attr2— anotherPangoAttribute
init¶
Initializes attr's klass to klass, it's start_index to
ATTR_INDEX_FROM_TEXT_BEGINNING and end_index to
ATTR_INDEX_TO_TEXT_END such that the attribute applies
to the entire text by default.
Parameters:
klass— aPangoAttrClass