class Pango::AttrList
- Pango::AttrList
- Reference
- Object
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.crConstructors
Class Method Summary
- .from_string(text : String) : Pango::AttrList?
-
.g_type : UInt64
Returns the type id (GType) registered in GLib type system.
Instance Method Summary
- #attributes : GLib::SList
- #change(attr : Pango::Attribute) : Nil
- #copy : Pango::AttrList?
- #equal(other_list : Pango::AttrList) : Bool
- #filter(func : Pango::AttrFilterFunc, data : Pointer(Void)?) : Pango::AttrList?
- #finalize
- #insert(attr : Pango::Attribute) : Nil
- #insert_before(attr : Pango::Attribute) : Nil
- #iterator : Pango::AttrIterator
- #splice(other : Pango::AttrList, pos : Int32, len : Int32) : Nil
- #to_string : String
- #to_unsafe : Pointer(Void)
- #update(pos : Int32, remove : Int32, add : Int32) : Nil