1Gtk2::Pango::Layout(3)User Contributed Perl DocumentationGtk2::Pango::Layout(3)
2
3
4

NAME

6       Gtk2::Pango::Layout
7

HIERARCHY

9         Glib::Object
10         +----Gtk2::Pango::Layout
11

METHODS

13   layout = Gtk2::Pango::Layout->new ($context)
14           ·   $context (Gtk2::Pango::Context)
15
16   alignment = $layout->get_alignment
17   $layout->set_alignment ($alignment)
18           ·   $alignment (Gtk2::Pango::Alignment)
19
20   attrlist or undef = $layout->get_attributes
21   $layout->set_attributes ($attrs)
22           ·   $attrs (Gtk2::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   $layout->context_changed
33   context = $layout->get_context
34   layout = $src->copy
35   (strong_pos, weak_pos) = $layout->get_cursor_pos ($index)
36           ·   $index_ (integer)
37
38   ellipsizemode = $layout->get_ellipsize
39           Since: pango 1.6
40
41   $layout->set_ellipsize ($ellipsize)
42           ·   $ellipsize (Gtk2::Pango::EllipsizeMode)
43
44           Since: pango 1.6
45
46   (ink_rect, logical_rect) = $layout->get_extents
47   (ink_rect, logical_rect) = $layout->get_pixel_extents
48   fontdescription or undef = $layout->get_font_description
49           Since: pango 1.8
50
51   $layout->set_font_description ($desc)
52           ·   $desc (Gtk2::Pango::FontDescription or undef)
53
54   integer = $layout->get_height
55           Since: pango 1.20
56
57   $layout->set_height ($height)
58           ·   $height (integer)
59
60           Since: pango 1.20
61
62   integer = $layout->get_indent
63   $layout->set_indent ($newval)
64           ·   $newval (integer)
65
66   array reference = $layout->index_to_pos ($index_)
67           ·   $index_ (integer)
68
69   boolean = $layout->is_ellipsized
70           Since: pango 1.16
71
72   boolean = $layout->is_wrapped
73           Since: pango 1.16
74
75   layoutiter = $layout->get_iter
76   integer = $layout->get_justify
77   $layout->set_justify ($newval)
78           ·   $newval (integer)
79
80   integer = $layout->get_line_count
81   layoutline or undef = $layout->get_line ($line)
82           ·   $line (integer)
83
84   layoutline or undef = $layout->get_line_readonly ($line)
85           ·   $line (integer)
86
87           Since: pango 1.16
88
89   list = $layout->get_lines
90   list = $layout->get_lines_readonly
91           Since: pango 1.16
92
93   list = $layout->get_log_attrs
94           Returns a list of Gtk2::Pango::LogAttr's
95
96   $layout->set_markup ($markup)
97           ·   $markup (string)
98
99   accel_char = $layout->set_markup_with_accel ($markup, $accel_marker)
100           ·   $markup (string)
101
102           ·   $accel_marker (character)
103
104   (new_index, new_trailing) = $layout->move_cursor_visually ($strong,
105       $old_index, $old_trailing, $direction)
106           ·   $strong (boolean)
107
108           ·   $old_index (integer)
109
110           ·   $old_trailing (integer)
111
112           ·   $direction (integer)
113
114   list = $layout->get_pixel_extents
115   (width, height) = $layout->get_pixel_size
116   integer = $layout->get_single_paragraph_mode
117   $layout->set_single_paragraph_mode ($newval)
118           ·   $newval (integer)
119
120   (width, height) = $layout->get_size
121   integer = $layout->get_spacing
122   $layout->set_spacing ($newval)
123           ·   $newval (integer)
124
125   tabarray or undef = $layout->get_tabs
126   $layout->set_tabs ($tabs)
127           ·   $tabs (Gtk2::Pango::TabArray or undef)
128
129   string = $layout->get_text
130   $layout->set_text ($text)
131           ·   $text (string)
132
133   integer = $layout->get_unknown_glyphs_count
134           Since: pango 1.16
135
136   integer = $layout->get_width
137   $layout->set_width ($newval)
138           ·   $newval (integer)
139
140   wrapmode = $layout->get_wrap
141   $layout->set_wrap ($wrap)
142           ·   $wrap (Gtk2::Pango::WrapMode)
143
144   (index, trailing) = $layout->xy_to_index ($x, $y)
145           ·   $x (integer)
146
147           ·   $y (integer)
148

ENUMS AND FLAGS

150   enum Gtk2::Pango::Alignment
151       ·   'left' / 'PANGO_ALIGN_LEFT'
152
153       ·   'center' / 'PANGO_ALIGN_CENTER'
154
155       ·   'right' / 'PANGO_ALIGN_RIGHT'
156
157   enum Gtk2::Pango::EllipsizeMode
158       ·   'none' / 'PANGO_ELLIPSIZE_NONE'
159
160       ·   'start' / 'PANGO_ELLIPSIZE_START'
161
162       ·   'middle' / 'PANGO_ELLIPSIZE_MIDDLE'
163
164       ·   'end' / 'PANGO_ELLIPSIZE_END'
165
166   enum Gtk2::Pango::WrapMode
167       ·   'word' / 'PANGO_WRAP_WORD'
168
169       ·   'char' / 'PANGO_WRAP_CHAR'
170
171       ·   'word-char' / 'PANGO_WRAP_WORD_CHAR'
172

SEE ALSO

174       Gtk2, Glib::Object
175
177       Copyright (C) 2003-2008 by the gtk2-perl team.
178
179       This software is licensed under the LGPL.  See Gtk2 for a full notice.
180
181
182
183perl v5.12.0                      2010-05-02            Gtk2::Pango::Layout(3)
Impressum