AttrIterator

class AttrIterator(pointer: <Error class: unknown class><<Error class: unknown class>>)

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.

Skipped during bindings generation

  • parameter language: language: Out parameter is not supported

  • parameter start: start: Out parameter is not supported

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val pangoAttrIteratorPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard

Copy a PangoAttrIterator.

Link copied to clipboard
fun destroy()

Destroy a PangoAttrIterator and free all associated memory.

Link copied to clipboard
fun get(type: AttrType): Attribute?

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

Link copied to clipboard
fun getAttrs(): <Error class: unknown class>

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

Link copied to clipboard
fun next(): Boolean

Advance the iterator until the next change of style.