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