![]() |
![]() |
The attributes 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.
Public Member Functions | |
AttrList () | |
AttrList (PangoAttrList* gobject, bool make_a_copy=true) | |
AttrList (const AttrList& other) | |
AttrList& | operator= (const AttrList& other) |
~AttrList () | |
void | swap (AttrList& other) |
PangoAttrList* | gobj () |
Provides access to the underlying C instance. | |
const PangoAttrList* | gobj () const |
Provides access to the underlying C instance. | |
PangoAttrList* | gobj_copy () const |
AttrList (const Glib::ustring& markup_text, gunichar accel_marker=0) | |
Constructs an attribute list by parsing a marked-up text (see markup format). | |
AttrList (const Glib::ustring& markup_text, gunichar accel_marker, Glib::ustring& text, gunichar& accel_char) | |
Constructs an attribute list by parsing a marked-up text (see markup format). | |
void | insert (Attribute& attr) |
void | insert_before (Attribute& attr) |
void | change (Attribute& attr) |
void | splice (AttrList& other, int pos, int len) |
This function splices attribute list other into list . | |
AttrIter | get_iter () |
Create a iterator initialized to the beginning of the list. | |
Protected Attributes | |
PangoAttrList* | gobject_ |
Related Functions | |
(Note that these are not member functions.) | |
void | swap (AttrList& lhs, AttrList& rhs) |
Pango::AttrList | wrap (PangoAttrList* object, bool take_copy=false) |
|
|
|
|
|
|
|
|
|
Constructs an attribute list by parsing a marked-up text (see markup format). If accel_marker is nonzero, the given character will mark the character following it as an accelerator. For example, the accel marker might be an ampersand or underscore. All characters marked as an accelerator will receive a Pango::UNDERLINE_LOW attribute. Two accel_marker characters following each other produce a single literal accel_marker character.
|
|
Constructs an attribute list by parsing a marked-up text (see markup format). text is set to the plaintext string. If accel_marker is nonzero, the given character will mark the character following it as an accelerator. For example, the accel marker might be an ampersand or underscore. All characters marked as an accelerator will receive a Pango::UNDERLINE_LOW attribute. The first character so marked will be returned in accel_char. Two accel_marker characters following each other produce a single literal accel_marker character.
|
|
|
|
Create a iterator initialized to the beginning of the list.
|
|
Provides access to the underlying C instance.
|
|
Provides access to the underlying C instance.
|
|
|
|
|
|
|
|
|
|
This function splices attribute list other into list . This operation is equivalent to stretching every attribute applies at position pos in list by an amount len , and then calling pango_attr_list_change() with a copy of each attributes in other in sequence (offset in position by pos ). This operation proves useful for, for instance, inserting a preedit string in the middle of an edit buffer.
|
|
|
|
|
|
|
|
|