PgAttributeIterator

Description Attributed text is used in a number of places in Pango. It is used as the input to the itemization process and also when creating a PangoLayout. The data types and functions in this section are used to represent and manipulate sets of attributes applied to a portion of text.

Constructors

this
this(PangoAttrIterator* pangoAttrIterator)

Sets our main struct and passes it to the parent class

Members

Functions

copy
PgAttributeIterator copy()

Copy a PangoAttrIterator

destroy
void destroy()

Destroy a PangoAttrIterator and free all associated memory.

get
PgAttribute get(PangoAttrType type)

Find the current attribute of a particular type at the iterator location. When multiple attributes of the same type overlap, the attribute whose range starts closest to the current location is used.

getAttrs
ListSG getAttrs()

Gets a list of all attributes at the current position of the iterator. Since 1.2

getFont
void getFont(PgFontDescription desc, PgLanguage language, ListSG extraAttrs)

Get the font and other attributes at the current iterator position.

getPgAttributeIteratorStruct
PangoAttrIterator* getPgAttributeIteratorStruct()
Undocumented in source. Be warned that the author may not have intended to support it.
getStruct
void* getStruct()

the main Gtk struct as a void*

next
int next()

Advance the iterator until the next change of style.

range
void range(int start, int end)

Get the range of the current segment. Note that the stored return values are signed, not unsigned like the values in PangoAttribute. To deal with this API oversight, stored return values that wouldn't fit into a signed integer are clamped to G_MAXINT.

Variables

pangoAttrIterator
PangoAttrIterator* pangoAttrIterator;

the main Gtk struct

Meta