Struct
PangoAttribute
Description [src]
struct PangoAttribute {
const PangoAttrClass* klass;
guint start_index;
guint end_index;
}
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 pango_attribute_init()
. By default, an attribute
will have an all-inclusive range of [0,G_MAXUINT
].
Structure members
klass |
The class structure holding information about the type of the attribute. |
start_index |
The start index of the range (in bytes). |
end_index |
End index of the range (in bytes). The character at this index is not included in the range. |
Instance methods
pango_attribute_as_font_features
Returns the attribute cast to PangoAttrFontFeatures
.
Available since: 1.50
pango_attribute_copy
Make a copy of an attribute.
pango_attribute_destroy
Destroy a PangoAttribute
and free all associated memory.
pango_attribute_equal
Compare two attributes for equality.
pango_attribute_init
Initializes attr
‘s klass to klass
, it’s start_index to
PANGO_ATTR_INDEX_FROM_TEXT_BEGINNING
and end_index to
PANGO_ATTR_INDEX_TO_TEXT_END
such that the attribute applies
to the entire text by default.
Available since: 1.20