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

NAME

6       Gtk2::ToolPalette - wrapper for GtkToolPalette
7

HIERARCHY

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

INTERFACES

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

METHODS

22   widget = Gtk2::ToolPalette->new
23   $palette->add_drag_dest ($widget, $flags, $targets, $actions)
24       ·   $widget (Gtk2::Widget)
25
26       ·   $flags (Gtk2::DestDefaults)
27
28       ·   $targets (Gtk2::ToolPaletteDragTargets)
29
30       ·   $actions (Gtk2::Gdk::DragAction)
31
32   widget = $palette->get_drag_item ($selection)
33       ·   $selection (Gtk2::SelectionData)
34
35   $palette->set_drag_source ($targets)
36       ·   $targets (Gtk2::ToolPaletteDragTargets)
37
38   targetentry = Gtk2::ToolPalette->get_drag_target_group
39   targetentry = Gtk2::ToolPalette->get_drag_target_item
40   toolitemgroup or undef = $palette->get_drop_group ($x, $y)
41       ·   $x (integer)
42
43       ·   $y (integer)
44
45   toolitem or undef = $palette->get_drop_item ($x, $y)
46       ·   $x (integer)
47
48       ·   $y (integer)
49
50   boolean = $palette->get_exclusive ($group)
51       ·   $group (Gtk2::ToolItemGroup)
52
53   $palette->set_exclusive ($group, $exclusive)
54       ·   $group (Gtk2::ToolItemGroup)
55
56       ·   $exclusive (boolean)
57
58   boolean = $palette->get_expand ($group)
59       ·   $group (Gtk2::ToolItemGroup)
60
61   $palette->set_expand ($group, $expand)
62       ·   $group (Gtk2::ToolItemGroup)
63
64       ·   $expand (boolean)
65
66   integer = $palette->get_group_position ($group)
67       ·   $group (Gtk2::ToolItemGroup)
68
69   $palette->set_group_position ($group, $position)
70       ·   $group (Gtk2::ToolItemGroup)
71
72       ·   $position (integer)
73
74   adjustment = $palette->get_hadjustment
75   iconsize = $palette->get_icon_size
76   $palette->set_icon_size ($icon_size)
77       ·   $icon_size (Gtk2::IconSize)
78
79   toolbarstyle = $palette->get_style
80   $palette->set_style ($style)
81       ·   $style (Gtk2::ToolbarStyle)
82
83   $palette->unset_icon_size
84   $palette->unset_style
85   adjustment = $palette->get_vadjustment

PROPERTIES

87       'icon-size' (Gtk2::IconSize : default "small-toolbar" : readable /
88       writable / private)
89           Size of icons in this tool palette
90
91       'icon-size-set' (boolean : default false : readable / writable /
92       private)
93           Whether the icon-size property has been set
94
95       'toolbar-style' (Gtk2::ToolbarStyle : default "icons" : readable /
96       writable / private)
97           Style of items in the tool palette
98

CHILD PROPERTIES

100       'exclusive' (boolean : default false : readable / writable / private)
101           Whether the item group should be the only expanded at a given time
102
103       'expand' (boolean : default false : readable / writable / private)
104           Whether the item group should receive extra space when the palette
105           grows
106

SIGNALS

108       set-scroll-adjustments (Gtk2::ToolPalette, Gtk2::Adjustment,
109       Gtk2::Adjustment)
110

ENUMS AND FLAGS

112   flags Gtk2::DestDefaults
113       ·   'motion' / 'GTK_DEST_DEFAULT_MOTION'
114
115       ·   'highlight' / 'GTK_DEST_DEFAULT_HIGHLIGHT'
116
117       ·   'drop' / 'GTK_DEST_DEFAULT_DROP'
118
119       ·   'all' / 'GTK_DEST_DEFAULT_ALL'
120
121   flags Gtk2::Gdk::DragAction
122       ·   'default' / 'GDK_ACTION_DEFAULT'
123
124       ·   'copy' / 'GDK_ACTION_COPY'
125
126       ·   'move' / 'GDK_ACTION_MOVE'
127
128       ·   'link' / 'GDK_ACTION_LINK'
129
130       ·   'private' / 'GDK_ACTION_PRIVATE'
131
132       ·   'ask' / 'GDK_ACTION_ASK'
133
134   enum Gtk2::IconSize
135       ·   'invalid' / 'GTK_ICON_SIZE_INVALID'
136
137       ·   'menu' / 'GTK_ICON_SIZE_MENU'
138
139       ·   'small-toolbar' / 'GTK_ICON_SIZE_SMALL_TOOLBAR'
140
141       ·   'large-toolbar' / 'GTK_ICON_SIZE_LARGE_TOOLBAR'
142
143       ·   'button' / 'GTK_ICON_SIZE_BUTTON'
144
145       ·   'dnd' / 'GTK_ICON_SIZE_DND'
146
147       ·   'dialog' / 'GTK_ICON_SIZE_DIALOG'
148
149   flags Gtk2::ToolPaletteDragTargets
150       ·   'items' / 'GTK_TOOL_PALETTE_DRAG_ITEMS'
151
152       ·   'groups' / 'GTK_TOOL_PALETTE_DRAG_GROUPS'
153
154   enum Gtk2::ToolbarStyle
155       ·   'icons' / 'GTK_TOOLBAR_ICONS'
156
157       ·   'text' / 'GTK_TOOLBAR_TEXT'
158
159       ·   'both' / 'GTK_TOOLBAR_BOTH'
160
161       ·   'both-horiz' / 'GTK_TOOLBAR_BOTH_HORIZ'
162

SEE ALSO

164       Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
165       Gtk2::Container
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.28.0                      2018-07-18              Gtk2::ToolPalette(3)
Impressum