1Gtk2::Toolbar(3)      User Contributed Perl Documentation     Gtk2::Toolbar(3)
2
3
4

NAME

6       Gtk2::Toolbar - wrapper for GtkToolbar
7

HIERARCHY

9         Glib::Object
10         +----Glib::InitiallyUnowned
11              +----Gtk2::Object
12                   +----Gtk2::Widget
13                        +----Gtk2::Container
14                             +----Gtk2::Toolbar
15

INTERFACES

17         Glib::Object::_Unregistered::AtkImplementorIface
18         Gtk2::Buildable
19         Gtk2::ToolShell
20         Gtk2::Orientable
21

METHODS

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

PROPERTIES

234       'icon-size' (integer : default 3 : readable / writable / private)
235           Size of icons in this toolbar
236
237       'icon-size-set' (boolean : default false : readable / writable /
238       private)
239           Whether the icon-size property has been set
240
241       'show-arrow' (boolean : default true : readable / writable / private)
242           If an arrow should be shown if the toolbar doesn't fit
243
244       'toolbar-style' (Gtk2::ToolbarStyle : default "both" : readable /
245       writable / private)
246           How to draw the toolbar
247
248       'tooltips' (boolean : default true : readable / writable / private)
249           If the tooltips of the toolbar should be active or not
250

CHILD PROPERTIES

252       'expand' (boolean : default false : readable / writable / private)
253           Whether the item should receive extra space when the toolbar grows
254
255       'homogeneous' (boolean : default false : readable / writable / private)
256           Whether the item should be the same size as other homogeneous items
257

STYLE PROPERTIES

259       'button-relief' (Gtk2::ReliefStyle : default "none" : readable /
260       private)
261           Type of bevel around toolbar buttons
262
263       'internal-padding' (integer : default 0 : readable / private)
264           Amount of border space between the toolbar shadow and the buttons
265
266       'max-child-expand' (integer : default INT_MAX : readable / private)
267           Maximum amount of space an expandable item will be given
268
269       'shadow-type' (Gtk2::ShadowType : default "out" : readable / private)
270           Style of bevel around the toolbar
271
272       'space-size' (integer : default 12 : readable / private)
273           Size of spacers
274
275       'space-style' (Gtk2::ToolbarSpaceStyle : default "line" : readable /
276       private)
277           Whether spacers are vertical lines or just blank
278

SIGNALS

280       boolean = focus-home-or-end (Gtk2::Toolbar, boolean)
281       orientation-changed (Gtk2::Toolbar, Gtk2::Orientation)
282       boolean = popup-context-menu (Gtk2::Toolbar, integer, integer, integer)
283       style-changed (Gtk2::Toolbar, Gtk2::ToolbarStyle)
284

ENUMS AND FLAGS

286   enum Gtk2::IconSize
287       ·   'invalid' / 'GTK_ICON_SIZE_INVALID'
288
289       ·   'menu' / 'GTK_ICON_SIZE_MENU'
290
291       ·   'small-toolbar' / 'GTK_ICON_SIZE_SMALL_TOOLBAR'
292
293       ·   'large-toolbar' / 'GTK_ICON_SIZE_LARGE_TOOLBAR'
294
295       ·   'button' / 'GTK_ICON_SIZE_BUTTON'
296
297       ·   'dnd' / 'GTK_ICON_SIZE_DND'
298
299       ·   'dialog' / 'GTK_ICON_SIZE_DIALOG'
300
301   enum Gtk2::Orientation
302       ·   'horizontal' / 'GTK_ORIENTATION_HORIZONTAL'
303
304       ·   'vertical' / 'GTK_ORIENTATION_VERTICAL'
305
306   enum Gtk2::ReliefStyle
307       ·   'normal' / 'GTK_RELIEF_NORMAL'
308
309       ·   'half' / 'GTK_RELIEF_HALF'
310
311       ·   'none' / 'GTK_RELIEF_NONE'
312
313   enum Gtk2::ToolbarChildType
314       ·   'space' / 'GTK_TOOLBAR_CHILD_SPACE'
315
316       ·   'button' / 'GTK_TOOLBAR_CHILD_BUTTON'
317
318       ·   'togglebutton' / 'GTK_TOOLBAR_CHILD_TOGGLEBUTTON'
319
320       ·   'radiobutton' / 'GTK_TOOLBAR_CHILD_RADIOBUTTON'
321
322       ·   'widget' / 'GTK_TOOLBAR_CHILD_WIDGET'
323
324   enum Gtk2::ToolbarStyle
325       ·   'icons' / 'GTK_TOOLBAR_ICONS'
326
327       ·   'text' / 'GTK_TOOLBAR_TEXT'
328
329       ·   'both' / 'GTK_TOOLBAR_BOTH'
330
331       ·   'both-horiz' / 'GTK_TOOLBAR_BOTH_HORIZ'
332

SEE ALSO

334       Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
335       Gtk2::Container
336
338       Copyright (C) 2003-2011 by the gtk2-perl team.
339
340       This software is licensed under the LGPL.  See Gtk2 for a full notice.
341
342
343
344perl v5.28.0                      2018-07-18                  Gtk2::Toolbar(3)
Impressum