class Pango::AttrList

Overview

A PangoAttrList represents a list of attributes that apply to a section of text.

The attributes in a PangoAttrList 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 PangoAttrList 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 PangoAttrList for more than one paragraph of text.

Defined in:

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

def self.new #

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 ==(other : self) : Bool #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


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 ref : Pango::AttrList #

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

def to_string : String #

def to_unsafe : Pointer(Void) #

def unref : Nil #

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