pango.attr_iterator
Module for [AttrIterator] class
class AttrIterator
Types 1
classAttrIterator : gobject.boxed.Boxed
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.
Methods
AttrIterator self()Returns `this`, for use in `with` statements.pango.attr_iterator.AttrIterator copy()Copy a [pango.attriterator.AttrIterator]. Returns: the newly allocated [pango.attriterator.AttrIterator], which should be freed with [pango.attr_iterator.AttrIterator.destroy]void destroy()Destroy a [pango.attr_iterator.AttrIterator] and free all associated memory.pango.attribute.Attribute get(pango.types.AttrType type)Find the current attribute of a particular type at the iterator location.pango.attribute.Attribute[] getAttrs()Gets a list of all attributes at the current position of the iterator. Returns: a list of all attributes for the current range. To free this value, call [pango.attribute.Attribute.destroy] on each ...void getFont(pango.font_description.FontDescription desc, out pango.language.Language language, out pango.attribute.Attribute[] extraAttrs)Get the font and other attributes at the current iterator position.bool next()Advance the iterator until the next change of style. Returns: false if the iterator is at the end of the list, otherwise truevoid range(out int start, out int end)Get the range of the current segment.