1Pango::AttrList(3) User Contributed Perl Documentation Pango::AttrList(3)
2
3
4
6 Pango::AttrList - wrapper for PangoAttrList
7
9 Pango::AttrList is a collection of Pango::Attributes. These attributes
10 annotate text with styles.
11
13 Glib::Boxed
14 +----Pango::AttrList
15
17 attrlist = Pango::AttrList->new
18 $list->change ($attr)
19 • $attr (Pango::Attribute)
20
21 attrlist or undef = $list->filter ($func, $data=undef)
22 • $func (scalar)
23
24 • $data (scalar)
25
26 Since: pango 1.2
27
28 $list->insert ($attr)
29 • $attr (Pango::Attribute)
30
31 $list->insert_before ($attr)
32 • $attr (Pango::Attribute)
33
34 attriterator = $list->get_iterator
35 ($attr_list, $text, $accel_char) = Pango->parse_markup ($markup_text,
36 $accel_marker)
37 • $markup_text (string)
38
39 • $accel_marker (character)
40
41 Parses marked-up text to create a plaintext string and an attribute
42 list.
43
44 If $accel_marker is supplied and nonzero, the given character will mark
45 the character following it as an accelerator. For example, the accel
46 marker might be an ampersand or underscore. All characters marked as
47 an acclerator will receive a PANGO_UNDERLINE_LOW attribute, and the
48 first character so marked will be returned in $accel_char. Two
49 $accel_marker characters following each other reduce to a single
50 literal $accel_marker character.
51
52 May croak with a Glib::Error in $@ on failure.
53
54 $list->splice ($other, $pos, $len)
55 • $other (Pango::AttrList)
56
57 • $pos (integer)
58
59 • $len (integer)
60
62 Pango, Glib::Boxed
63
65 Copyright (C) 2003-2011 by the gtk2-perl team.
66
67 This software is licensed under the LGPL. See Pango for a full notice.
68
69
70
71perl v5.36.0 2023-01-20 Pango::AttrList(3)