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) #

[View source]

Class Method Detail

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

[View source]
def self.g_type : UInt64 #

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


[View source]

Instance Method Detail

def attributes : GLib::SList #

[View source]
def change(attr : Pango::Attribute) : Nil #

[View source]
def copy : Pango::AttrList | Nil #

[View source]
def equal(other_list : Pango::AttrList) : Bool #

[View source]
def filter(func : Pango::AttrFilterFunc, data : Pointer(Void) | Nil) : Pango::AttrList | Nil #

[View source]
def finalize #

[View source]
def insert(attr : Pango::Attribute) : Nil #

[View source]
def insert_before(attr : Pango::Attribute) : Nil #

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

[View source]
def splice(other : Pango::AttrList, pos : Int32, len : Int32) : Nil #

[View source]
def to_string : String #

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

[View source]
def update(pos : Int32, remove : Int32, add : Int32) : Nil #

[View source]