Struct

Pango.Attribute

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_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. This compares only the actual value of the two attributes and not the ranges that the attributes apply to.

pango_attribute_init

Initializes attrs 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