class Pango::AttrIterator

Overview

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:

lib/gi-crystal/src/auto/pango-1.0/attr_iterator.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(pointer : Pointer(Void), transfer : GICrystal::Transfer) #

[View source]

Class Method Detail

def self.g_type : UInt64 #

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


[View source]

Instance Method Detail

def attrs : GLib::SList #

[View source]
def copy : Pango::AttrIterator #

[View source]
def destroy : Nil #

[View source]
def finalize #

[View source]
def font(desc : Pango::FontDescription) : Nil #

[View source]
def get(type : Pango::AttrType) : Pango::Attribute | Nil #

[View source]
def next : Bool #

[View source]
def range(start : Int32, end _end : Int32) : Nil #

[View source]
def to_unsafe : Pointer(Void) #

[View source]