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
pango.attr_iterator.AttrIterator copy() nothrowCopy a [pango.attr_iterator.AttrIterator]. Returns: the newly allocated [pango.attr_iterator.AttrIterator], which should be freed with [pango.attr_iterator.AttrIterator.destroy]pango.attribute.Attribute get(pango.types.AttrType type) nothrowFind the current attribute of a particular type at the iterator location.pango.attribute.Attribute[] getAttrs() nothrowGets 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) nothrowGet the font and other attributes at the current iterator position.bool next() nothrowAdvance the iterator until the next change of style. Returns: false if the iterator is at the end of the list, otherwise true