1Pango::Layout(3) User Contributed Perl Documentation Pango::Layout(3)
2
3
4
6 Pango::Layout - wrapper for PangoLayout
7
9 Glib::Object
10 +----Pango::Layout
11
13 layout = Pango::Layout->new ($context)
14 · $context (Pango::Context)
15
16 alignment = $layout->get_alignment
17 $layout->set_alignment ($alignment)
18 · $alignment (Pango::Alignment)
19
20 attrlist or undef = $layout->get_attributes
21 $layout->set_attributes ($attrs)
22 · $attrs (Pango::AttrList or undef)
23
24 boolean = $layout->get_auto_dir
25 Since: pango 1.4
26
27 $layout->set_auto_dir ($auto_dir)
28 · $auto_dir (boolean)
29
30 Since: pango 1.4
31
32 integer = $layout->get_baseline
33 Since: pango 1.22
34
35 $layout->context_changed
36 context = $layout->get_context
37 layout = $src->copy
38 (strong_pos, weak_pos) = $layout->get_cursor_pos ($index)
39 · $index_ (integer)
40
41 ellipsizemode = $layout->get_ellipsize
42 Since: pango 1.6
43
44 $layout->set_ellipsize ($ellipsize)
45 · $ellipsize (Pango::EllipsizeMode)
46
47 Since: pango 1.6
48
49 (ink_rect, logical_rect) = $layout->get_extents
50 (ink_rect, logical_rect) = $layout->get_pixel_extents
51 fontdescription or undef = $layout->get_font_description
52 Since: pango 1.8
53
54 $layout->set_font_description ($desc)
55 · $desc (Pango::FontDescription or undef)
56
57 integer = $layout->get_height
58 Since: pango 1.20
59
60 $layout->set_height ($height)
61 · $height (integer)
62
63 Since: pango 1.20
64
65 integer = $layout->get_indent
66 $layout->set_indent ($newval)
67 · $newval (integer)
68
69 array reference = $layout->index_to_pos ($index_)
70 · $index_ (integer)
71
72 boolean = $layout->is_ellipsized
73 Since: pango 1.16
74
75 boolean = $layout->is_wrapped
76 Since: pango 1.16
77
78 layoutiter = $layout->get_iter
79 integer = $layout->get_justify
80 $layout->set_justify ($newval)
81 · $newval (integer)
82
83 integer = $layout->get_line_count
84 layoutline or undef = $layout->get_line ($line)
85 · $line (integer)
86
87 layoutline or undef = $layout->get_line_readonly ($line)
88 · $line (integer)
89
90 Since: pango 1.16
91
92 list = $layout->get_lines
93 list = $layout->get_lines_readonly
94 Since: pango 1.16
95
96 list = $layout->get_log_attrs
97 Returns a list of Pango::LogAttr's
98
99 $layout->set_markup ($markup)
100 · $markup (string)
101
102 accel_char = $layout->set_markup_with_accel ($markup, $accel_marker)
103 · $markup (string)
104
105 · $accel_marker (character)
106
107 (new_index, new_trailing) = $layout->move_cursor_visually ($strong,
108 $old_index, $old_trailing, $direction)
109 · $strong (boolean)
110
111 · $old_index (integer)
112
113 · $old_trailing (integer)
114
115 · $direction (integer)
116
117 list = $layout->get_pixel_extents
118 (width, height) = $layout->get_pixel_size
119 integer = $layout->get_single_paragraph_mode
120 $layout->set_single_paragraph_mode ($newval)
121 · $newval (integer)
122
123 (width, height) = $layout->get_size
124 integer = $layout->get_spacing
125 $layout->set_spacing ($newval)
126 · $newval (integer)
127
128 tabarray or undef = $layout->get_tabs
129 $layout->set_tabs ($tabs)
130 · $tabs (Pango::TabArray or undef)
131
132 string = $layout->get_text
133 $layout->set_text ($text)
134 · $text (string)
135
136 integer = $layout->get_unknown_glyphs_count
137 Since: pango 1.16
138
139 integer = $layout->get_width
140 $layout->set_width ($newval)
141 · $newval (integer)
142
143 wrapmode = $layout->get_wrap
144 $layout->set_wrap ($wrap)
145 · $wrap (Pango::WrapMode)
146
147 (index, trailing) = $layout->xy_to_index ($x, $y)
148 · $x (integer)
149
150 · $y (integer)
151
153 enum Pango::Alignment
154 · 'left' / 'PANGO_ALIGN_LEFT'
155
156 · 'center' / 'PANGO_ALIGN_CENTER'
157
158 · 'right' / 'PANGO_ALIGN_RIGHT'
159
160 enum Pango::EllipsizeMode
161 · 'none' / 'PANGO_ELLIPSIZE_NONE'
162
163 · 'start' / 'PANGO_ELLIPSIZE_START'
164
165 · 'middle' / 'PANGO_ELLIPSIZE_MIDDLE'
166
167 · 'end' / 'PANGO_ELLIPSIZE_END'
168
169 enum Pango::WrapMode
170 · 'word' / 'PANGO_WRAP_WORD'
171
172 · 'char' / 'PANGO_WRAP_CHAR'
173
174 · 'word-char' / 'PANGO_WRAP_WORD_CHAR'
175
177 Pango, Glib::Object
178
180 Copyright (C) 2003-2011 by the gtk2-perl team.
181
182 This software is licensed under the LGPL. See Pango for a full notice.
183
184
185
186perl v5.28.1 2019-02-02 Pango::Layout(3)