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

NAME

6       Gtk2::ToolItem - wrapper for GtkToolItem
7

HIERARCHY

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

INTERFACES

18         Glib::Object::_Unregistered::AtkImplementorIface
19         Gtk2::Buildable
20         Gtk2::Activatable
21

METHODS

23   toolitem = Gtk2::ToolItem->new
24   ellipsizemode = $tool_item->get_ellipsize_mode
25       Since: gtk+ 2.20
26
27   boolean = $tool_item->get_expand
28   $tool_item->set_expand ($expand)
29       ·   $expand (boolean)
30
31   boolean = $tool_item->get_homogeneous
32   $tool_item->set_homogeneous ($homogeneous)
33       ·   $homogeneous (boolean)
34
35   iconsize = $tool_item->get_icon_size
36   boolean = $tool_item->get_is_important
37   $tool_item->set_is_important ($is_important)
38       ·   $is_important (boolean)
39
40   orientation = $tool_item->get_orientation
41   widget = $tool_item->get_proxy_menu_item ($menu_item_id)
42       ·   $menu_item_id (string)
43
44   $tool_item->set_proxy_menu_item ($menu_item_id, $menu_item)
45       ·   $menu_item_id (string)
46
47       ·   $menu_item (Gtk2::Widget or undef)
48
49   $tool_item->rebuild_menu
50       Since: gtk+ 2.6
51
52   reliefstyle = $tool_item->get_relief_style
53   widget = $tool_item->retrieve_proxy_menu_item
54   double = $tool_item->get_text_alignment
55       Since: gtk+ 2.20
56
57   orientation = $tool_item->get_text_orientation
58       Since: gtk+ 2.20
59
60   sizegroup = $tool_item->get_text_size_group
61       Since: gtk+ 2.20
62
63   $tool_item->toolbar_reconfigured
64       Since: gtk+ 2.14
65
66   toolbarstyle = $tool_item->get_toolbar_style
67   $tool_item->set_tooltip_markup ($markup)
68       ·   $markup (string or undef)
69
70       Since: gtk+ 2.12
71
72   $tool_item->set_tooltip ($tooltips, $tip_text, $tip_private)
73       ·   $tooltips (Gtk2::Tooltips)
74
75       ·   $tip_text (string)
76
77       ·   $tip_private (string)
78
79   $tool_item->set_tooltip_text ($text)
80       ·   $text (string or undef)
81
82       Since: gtk+ 2.12
83
84   boolean = $toolitem->get_use_drag_window
85   $toolitem->set_use_drag_window ($use_drag_window)
86       ·   $use_drag_window (boolean)
87
88   boolean = $toolitem->get_visible_horizontal
89   $toolitem->set_visible_horizontal ($visible_horizontal)
90       ·   $visible_horizontal (boolean)
91
92   boolean = $toolitem->get_visible_vertical
93   $toolitem->set_visible_vertical ($visible_vertical)
94       ·   $visible_vertical (boolean)
95

PROPERTIES

97       'is-important' (boolean : default false : readable / writable /
98       private)
99           Whether the toolbar item is considered important. When TRUE,
100           toolbar buttons show text in GTK_TOOLBAR_BOTH_HORIZ mode
101
102       'visible-horizontal' (boolean : default true : readable / writable /
103       private)
104           Whether the toolbar item is visible when the toolbar is in a
105           horizontal orientation.
106
107       'visible-vertical' (boolean : default true : readable / writable /
108       private)
109           Whether the toolbar item is visible when the toolbar is in a
110           vertical orientation.
111

SIGNALS

113       boolean = create-menu-proxy (Gtk2::ToolItem)
114       boolean = set-tooltip (Gtk2::ToolItem, Gtk2::Tooltips, string, string)
115       toolbar-reconfigured (Gtk2::ToolItem)
116

ENUMS AND FLAGS

118   enum Gtk2::IconSize
119       ·   'invalid' / 'GTK_ICON_SIZE_INVALID'
120
121       ·   'menu' / 'GTK_ICON_SIZE_MENU'
122
123       ·   'small-toolbar' / 'GTK_ICON_SIZE_SMALL_TOOLBAR'
124
125       ·   'large-toolbar' / 'GTK_ICON_SIZE_LARGE_TOOLBAR'
126
127       ·   'button' / 'GTK_ICON_SIZE_BUTTON'
128
129       ·   'dnd' / 'GTK_ICON_SIZE_DND'
130
131       ·   'dialog' / 'GTK_ICON_SIZE_DIALOG'
132
133   enum Gtk2::Orientation
134       ·   'horizontal' / 'GTK_ORIENTATION_HORIZONTAL'
135
136       ·   'vertical' / 'GTK_ORIENTATION_VERTICAL'
137
138   enum Gtk2::ReliefStyle
139       ·   'normal' / 'GTK_RELIEF_NORMAL'
140
141       ·   'half' / 'GTK_RELIEF_HALF'
142
143       ·   'none' / 'GTK_RELIEF_NONE'
144
145   enum Gtk2::ToolbarStyle
146       ·   'icons' / 'GTK_TOOLBAR_ICONS'
147
148       ·   'text' / 'GTK_TOOLBAR_TEXT'
149
150       ·   'both' / 'GTK_TOOLBAR_BOTH'
151
152       ·   'both-horiz' / 'GTK_TOOLBAR_BOTH_HORIZ'
153
154   enum Pango::EllipsizeMode
155       ·   'none' / 'PANGO_ELLIPSIZE_NONE'
156
157       ·   'start' / 'PANGO_ELLIPSIZE_START'
158
159       ·   'middle' / 'PANGO_ELLIPSIZE_MIDDLE'
160
161       ·   'end' / 'PANGO_ELLIPSIZE_END'
162

SEE ALSO

164       Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
165       Gtk2::Container, Gtk2::Bin
166
168       Copyright (C) 2003-2011 by the gtk2-perl team.
169
170       This software is licensed under the LGPL.  See Gtk2 for a full notice.
171
172
173
174perl v5.30.0                      2019-07-26                 Gtk2::ToolItem(3)
Impressum