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_color

Returns the attribute cast to PangoAttrColor.

since: 1.50

pango_attribute_as_float

Returns the attribute cast to PangoAttrFloat.

since: 1.50

pango_attribute_as_font_desc

Returns the attribute cast to PangoAttrFontDesc.

since: 1.50

pango_attribute_as_font_features

Returns the attribute cast to PangoAttrFontFeatures.

since: 1.50

pango_attribute_as_int

Returns the attribute cast to PangoAttrInt.

since: 1.50

pango_attribute_as_language

Returns the attribute cast to PangoAttrLanguage.

since: 1.50

pango_attribute_as_shape

Returns the attribute cast to PangoAttrShape.

since: 1.50

pango_attribute_as_size

Returns the attribute cast to PangoAttrSize.

since: 1.50

pango_attribute_as_string

Returns the attribute cast to PangoAttrString.

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 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.

since: 1.20