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