Struct
PangoAttribute
since: 1.0
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
klassThe class structure holding information about the type of the attribute.
start_indexThe start index of the range (in bytes).
end_indexEnd index of the range (in bytes). The character at this index is not included in the range.
Available since: 1.0
Instance methods
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.
since: 1.20