Basics
Guides
API Reference
Basics
Guides
API Reference
[18:7] extends: object
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.
PangoAttrIterator (Handle = null)
Creates a new
AttrIteratorby wrapping a native handle or another wrapper.
Handle is the native handle or another wrapper whose handle to adopt.toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.copy ()
Copy a
PangoAttrIterator.
the newly allocated PangoAttrIterator, which should be freed with [method@Pango.AttrIterator.destroy].destroy ()
Destroy a
PangoAttrIteratorand free all associated memory.
None.get (string 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.
type is the type of attribute to find.the current attribute of the given type, or %NULL if no attribute of that type applies to the current location..get_attrs ()
Gets a list of all attributes at the current position of the iterator.
a list of all attributes for the current range. To free this value, call [method@Pango.Attribute.destroy] on each value and g_slist_free() on the list..next ()
Advance the iterator until the next change of style.
%FALSE if the iterator is at the end of the list, otherwise %TRUE.range ()
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.
start is location to store the start of the range.end is location to store the end of the range.None.attrs ()
Returns
get_attrsas an Aussom list of wrapper objects. This companion method materializes the full collection up front; useget_attrs()when lazy or change-notify access is required.
An Aussom list of elements.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.