1Gtk2::Toolbar(3) User Contributed Perl Documentation Gtk2::Toolbar(3)
2
3
4
6 Gtk2::Toolbar
7
9 Glib::Object
10 +----Glib::InitiallyUnowned
11 +----Gtk2::Object
12 +----Gtk2::Widget
13 +----Gtk2::Container
14 +----Gtk2::Toolbar
15
17 Glib::Object::_Unregistered::AtkImplementorIface
18 Gtk2::Buildable
19 Gtk2::ToolShell
20 Glib::Object::_Unregistered::GtkOrientable
21
23 widget = Gtk2::Toolbar->new
24 widget = $toolbar->append_element ($type, $widget, $text, $tooltip_text,
25 $tooltip_private_text, $icon, $callback=undef, $user_data=undef)
26 · $type (Gtk2::ToolbarChildType)
27
28 · $widget (Gtk2::Widget or undef)
29
30 · $text (string)
31
32 · $tooltip_text (string or undef)
33
34 · $tooltip_private_text (string or undef)
35
36 · $icon (Gtk2::Widget or undef)
37
38 · $callback (subroutine)
39
40 · $user_data (scalar)
41
42 widget = $toolbar->append_item ($text, $tooltip_text,
43 $tooltip_private_text, $icon, $callback=undef, $user_data=undef)
44 · $text (string)
45
46 · $tooltip_text (string or undef)
47
48 · $tooltip_private_text (string or undef)
49
50 · $icon (Gtk2::Widget or undef)
51
52 · $callback (subroutine)
53
54 · $user_data (scalar)
55
56 $toolbar->append_space
57 $toolbar->append_widget ($widget, $tooltip_text, $tooltip_private_text)
58 · $widget (Gtk2::Widget)
59
60 · $tooltip_text (string or undef)
61
62 · $tooltip_private_text (string or undef)
63
64 $toolbar->set_drop_highlight_item ($tool_item, $index)
65 · $tool_item (Gtk2::ToolItem or undef)
66
67 · $index (integer)
68
69 Since: gtk+ 2.4
70
71 integer = $toolbar->get_drop_index ($x, $y)
72 · $x (integer)
73
74 · $y (integer)
75
76 Since: gtk+ 2.4
77
78 iconsize = $toolbar->get_icon_size
79 $toolbar->set_icon_size ($icon_size)
80 · $icon_size (Gtk2::IconSize)
81
82 $toolbar->insert ($item, $pos)
83 · $item (Gtk2::ToolItem)
84
85 · $pos (integer)
86
87 Since: gtk+ 2.4
88
89 widget = $toolbar->insert_element ($type, $widget, $text, $tooltip_text,
90 $tooltip_private_text, $icon, $callback, $user_data, $position)
91 · $type (Gtk2::ToolbarChildType)
92
93 · $widget (Gtk2::Widget or undef)
94
95 · $text (string)
96
97 · $tooltip_text (string or undef)
98
99 · $tooltip_private_text (string or undef)
100
101 · $icon (Gtk2::Widget or undef)
102
103 · $callback (subroutine)
104
105 · $user_data (scalar)
106
107 · $position (integer)
108
109 widget = $toolbar->insert_item ($text, $tooltip_text,
110 $tooltip_private_text, $icon, $callback, $user_data, $position)
111 · $text (string)
112
113 · $tooltip_text (string or undef)
114
115 · $tooltip_private_text (string or undef)
116
117 · $icon (Gtk2::Widget or undef)
118
119 · $callback (subroutine)
120
121 · $user_data (scalar)
122
123 · $position (integer)
124
125 $toolbar->insert_space ($position)
126 · $position (integer)
127
128 widget = $toolbar->insert_stock ($stock_id, $tooltip_text,
129 $tooltip_private_text, $callback, $user_data, $position)
130 · $stock_id (string)
131
132 · $tooltip_text (string or undef)
133
134 · $tooltip_private_text (string or undef)
135
136 · $callback (subroutine)
137
138 · $user_data (scalar)
139
140 · $position (integer)
141
142 $toolbar->insert_widget ($widget, $tooltip_text, $tooltip_private_text,
143 $position)
144 · $widget (Gtk2::Widget)
145
146 · $tooltip_text (string or undef)
147
148 · $tooltip_private_text (string or undef)
149
150 · $position (integer)
151
152 integer = $toolbar->get_item_index ($item)
153 · $item (Gtk2::ToolItem)
154
155 Since: gtk+ 2.4
156
157 integer = $toolbar->get_n_items
158 Since: gtk+ 2.4
159
160 toolitem or undef = $toolbar->get_nth_item ($n)
161 · $n (integer)
162
163 Since: gtk+ 2.4
164
165 orientation = $toolbar->get_orientation
166 $toolbar->set_orientation ($orientation)
167 · $orientation (Gtk2::Orientation)
168
169 widget = $toolbar->prepend_element ($type, $widget, $text, $tooltip_text,
170 $tooltip_private_text, $icon, $callback=undef, $user_data=undef)
171 · $type (Gtk2::ToolbarChildType)
172
173 · $widget (Gtk2::Widget or undef)
174
175 · $text (string)
176
177 · $tooltip_text (string or undef)
178
179 · $tooltip_private_text (string or undef)
180
181 · $icon (Gtk2::Widget or undef)
182
183 · $callback (subroutine)
184
185 · $user_data (scalar)
186
187 widget = $toolbar->prepend_item ($text, $tooltip_text,
188 $tooltip_private_text, $icon, $callback=undef, $user_data=undef)
189 · $text (string)
190
191 · $tooltip_text (string or undef)
192
193 · $tooltip_private_text (string or undef)
194
195 · $icon (Gtk2::Widget or undef)
196
197 · $callback (subroutine)
198
199 · $user_data (scalar)
200
201 $toolbar->prepend_space
202 $toolbar->prepend_widget ($widget, $tooltip_text, $tooltip_private_text)
203 · $widget (Gtk2::Widget)
204
205 · $tooltip_text (string or undef)
206
207 · $tooltip_private_text (string or undef)
208
209 reliefstyle = $toolbar->get_relief_style
210 Since: gtk+ 2.4
211
212 $toolbar->remove_space ($position)
213 · $position (integer)
214
215 boolean = $toolbar->get_show_arrow
216 Since: gtk+ 2.4
217
218 $toolbar->set_show_arrow ($show_arrow)
219 · $show_arrow (boolean)
220
221 Since: gtk+ 2.4
222
223 toolbarstyle = $toolbar->get_style
224 $toolbar->set_style ($style)
225 · $style (Gtk2::ToolbarStyle)
226
227 boolean = $toolbar->get_tooltips
228 $toolbar->set_tooltips ($enable)
229 · $enable (boolean)
230
231 $toolbar->unset_icon_size
232 $toolbar->unset_style
234 'icon-size' (integer : readable / writable / private)
235 Size of icons in this toolbar
236
237 'icon-size-set' (boolean : readable / writable / private)
238 Whether the icon-size property has been set
239
240 'show-arrow' (boolean : readable / writable / private)
241 If an arrow should be shown if the toolbar doesn't fit
242
243 'toolbar-style' (Gtk2::ToolbarStyle : readable / writable / private)
244 How to draw the toolbar
245
246 'tooltips' (boolean : readable / writable / private)
247 If the tooltips of the toolbar should be active or not
248
250 orientation-changed (Gtk2::Toolbar, Gtk2::Orientation)
251 style-changed (Gtk2::Toolbar, Gtk2::ToolbarStyle)
252 boolean = popup-context-menu (Gtk2::Toolbar, integer, integer, integer)
253 boolean = focus-home-or-end (Gtk2::Toolbar, boolean)
254
256 enum Gtk2::IconSize
257 · 'invalid' / 'GTK_ICON_SIZE_INVALID'
258
259 · 'menu' / 'GTK_ICON_SIZE_MENU'
260
261 · 'small-toolbar' / 'GTK_ICON_SIZE_SMALL_TOOLBAR'
262
263 · 'large-toolbar' / 'GTK_ICON_SIZE_LARGE_TOOLBAR'
264
265 · 'button' / 'GTK_ICON_SIZE_BUTTON'
266
267 · 'dnd' / 'GTK_ICON_SIZE_DND'
268
269 · 'dialog' / 'GTK_ICON_SIZE_DIALOG'
270
271 enum Gtk2::Orientation
272 · 'horizontal' / 'GTK_ORIENTATION_HORIZONTAL'
273
274 · 'vertical' / 'GTK_ORIENTATION_VERTICAL'
275
276 enum Gtk2::ReliefStyle
277 · 'normal' / 'GTK_RELIEF_NORMAL'
278
279 · 'half' / 'GTK_RELIEF_HALF'
280
281 · 'none' / 'GTK_RELIEF_NONE'
282
283 enum Gtk2::ToolbarChildType
284 · 'space' / 'GTK_TOOLBAR_CHILD_SPACE'
285
286 · 'button' / 'GTK_TOOLBAR_CHILD_BUTTON'
287
288 · 'togglebutton' / 'GTK_TOOLBAR_CHILD_TOGGLEBUTTON'
289
290 · 'radiobutton' / 'GTK_TOOLBAR_CHILD_RADIOBUTTON'
291
292 · 'widget' / 'GTK_TOOLBAR_CHILD_WIDGET'
293
294 enum Gtk2::ToolbarStyle
295 · 'icons' / 'GTK_TOOLBAR_ICONS'
296
297 · 'text' / 'GTK_TOOLBAR_TEXT'
298
299 · 'both' / 'GTK_TOOLBAR_BOTH'
300
301 · 'both-horiz' / 'GTK_TOOLBAR_BOTH_HORIZ'
302
304 Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
305 Gtk2::Container
306
308 Copyright (C) 2003-2008 by the gtk2-perl team.
309
310 This software is licensed under the LGPL. See Gtk2 for a full notice.
311
312
313
314perl v5.12.0 2010-05-02 Gtk2::Toolbar(3)