AttrIterator

A pango.attr_iterator.AttrIterator is used to iterate through a pango.attr_list.AttrList.

A new iterator is created with pango.attr_list.AttrList.getIterator. Once the iterator is created, it can be advanced through the style changes in the text using pango.attr_iterator.AttrIterator.next. At each style change, the range of the current style segment and the attributes currently in effect can be queried.

Members

Functions

copy
pango.attr_iterator.AttrIterator copy()

Copy a pango.attr_iterator.AttrIterator.

destroy
void destroy()

Destroy a pango.attr_iterator.AttrIterator and free all associated memory.

get
pango.attribute.Attribute get(pango.types.AttrType type)

Find the current attribute of a particular type at the iterator location.

getAttrs
pango.attribute.Attribute[] getAttrs()

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

getFont
void getFont(pango.font_description.FontDescription desc, pango.language.Language language, pango.attribute.Attribute[] extraAttrs)

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

next
bool next()

Advance the iterator until the next change of style.

range
void range(int start, int end)

Get the range of the current segment.

Inherited Members

From Boxed

cInstancePtr
void* cInstancePtr;

Pointer to the C boxed value

getType
GType getType()

Get the GType of this boxed type.

gType
GType gType [@property getter]

Boxed GType property.

self
Boxed self()

Convenience method to return this cast to a type. For use in D with statements.

copy_
void* copy_()

Make a copy of the wrapped C boxed data.

boxedCopy
void* boxedCopy(void* cBoxed)

Copy a C boxed value using g_boxed_copy.

boxedFree
void boxedFree(void* cBoxed)

Free a C boxed value using g_boxed_free.