class Pango::AttrList

Overview

A Pango::AttrList represents a list of attributes that apply to a section of text.

The attributes in a Pango::AttrList are, in general, allowed to overlap in an arbitrary fashion. However, if the attributes are manipulated only through Pango::AttrList#change, the overlap between properties will meet stricter criteria.

Since the Pango::AttrList structure is stored as a linear list, it is not suitable for storing attributes for large amounts of text. In general, you should not use a single Pango::AttrList for more than one paragraph of text.

Defined in:

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

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

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

Class Method Detail

def self.from_string(text : String) : Pango::AttrList? #

def self.g_type : UInt64 #

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


Instance Method Detail

def attributes : GLib::SList #

def change(attr : Pango::Attribute) : Nil #

def copy : Pango::AttrList? #

def equal(other_list : Pango::AttrList) : Bool #

def filter(func : Pango::AttrFilterFunc, data : Pointer(Void)?) : Pango::AttrList? #

def finalize #

def insert(attr : Pango::Attribute) : Nil #

def insert_before(attr : Pango::Attribute) : Nil #

def iterator : Pango::AttrIterator #

def splice(other : Pango::AttrList, pos : Int32, len : Int32) : Nil #

def to_string : String #

def to_unsafe : Pointer(Void) #

def update(pos : Int32, remove : Int32, add : Int32) : Nil #