AttrIterator
Object Hierarchy:
Description:
[ CCode ( free_function = "pango_attr_iterator_destroy" , type_id = "pango_attr_iterator_get_type ()" ) ]
[ Compact ]
public class AttrIterator
A `PangoAttrIterator` is used to iterate through a `PangoAttrList`.
A new iterator is created with [method@Pango.AttrList.get_iterator]. Once the iterator is created, it can be advanced through the style
changes in the text using [method@Pango.AttrIterator.next]. At each style change, the range of the current style segment and the
attributes currently in effect can be queried.
Content:
Methods:
- public unowned Attribute? @get (AttrType type)
Find the current attribute of a particular type at the iterator
location.
- public AttrIterator copy ()
Copy a `PangoAttrIterator`.
- public void destroy ()
Destroy a `PangoAttrIterator` and free all associated memory.
- public SList<Attribute> get_attrs ()
Gets a list of all attributes at the current position of the iterator.
- public void get_font (FontDescription desc, out Language language, out SList<Attribute> extra_attrs)
Get the font and other attributes at the current iterator position.
- public bool next ()
Advance the iterator until the next change of style.
- public void range (out int start, out int end)
Get the range of the current segment.