class Pango::AttrIterator


A Pango::AttrIterator is used to iterate through a Pango::AttrList.

A new iterator is created with Pango::AttrList#iterator. Once the iterator is created, it can be advanced through the style changes in the text using Pango::AttrIterator#next. At each style change, the range of the current style segment and the attributes currently in effect can be queried.

Defined in:



Class Method Summary

Instance Method Summary

Constructor Detail

def : Pointer(Void), transfer : GICrystal::Transfer) #

Class Method Detail

def self.g_type : UInt64 #

Returns the type id (GType) registered in GLib type system.

Instance Method Detail

def attrs : GLib::SList #

def copy : Pango::AttrIterator #

def destroy : Nil #

def finalize #

def font(desc : Pango::FontDescription) : Nil #

def get(type : Pango::AttrType) : Pango::Attribute? #

def next : Bool #

def range(start : Int32, end _end : Int32) : Nil #

def to_unsafe : Pointer(Void) #