1Gtk2::ToolPalette(3) User Contributed Perl Documentation Gtk2::ToolPalette(3)
2
3
4
6 Gtk2::ToolPalette - wrapper for GtkToolPalette
7
9 Glib::Object
10 +----Glib::InitiallyUnowned
11 +----Gtk2::Object
12 +----Gtk2::Widget
13 +----Gtk2::Container
14 +----Gtk2::ToolPalette
15
17 Glib::Object::_Unregistered::AtkImplementorIface
18 Gtk2::Buildable
19 Gtk2::Orientable
20
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
87 'icon-size' (Gtk2::IconSize : default "small-toolbar" : readable /
88 writable / private / static-nick / static-blurb)
89 Size of icons in this tool palette
90
91 'icon-size-set' (boolean : default false : readable / writable /
92 private / static-nick / static-blurb)
93 Whether the icon-size property has been set
94
95 'toolbar-style' (Gtk2::ToolbarStyle : default "icons" : readable /
96 writable / private / static-nick / static-blurb)
97 Style of items in the tool palette
98
100 'exclusive' (boolean : default false : readable / writable / private /
101 static-nick / static-blurb)
102 Whether the item group should be the only expanded at a given time
103
104 'expand' (boolean : default false : readable / writable / private /
105 static-nick / static-blurb)
106 Whether the item group should receive extra space when the palette
107 grows
108
110 set-scroll-adjustments (Gtk2::ToolPalette, Gtk2::Adjustment,
111 Gtk2::Adjustment)
112
114 flags Gtk2::DestDefaults
115 · 'motion' / 'GTK_DEST_DEFAULT_MOTION'
116
117 · 'highlight' / 'GTK_DEST_DEFAULT_HIGHLIGHT'
118
119 · 'drop' / 'GTK_DEST_DEFAULT_DROP'
120
121 · 'all' / 'GTK_DEST_DEFAULT_ALL'
122
123 flags Gtk2::Gdk::DragAction
124 · 'default' / 'GDK_ACTION_DEFAULT'
125
126 · 'copy' / 'GDK_ACTION_COPY'
127
128 · 'move' / 'GDK_ACTION_MOVE'
129
130 · 'link' / 'GDK_ACTION_LINK'
131
132 · 'private' / 'GDK_ACTION_PRIVATE'
133
134 · 'ask' / 'GDK_ACTION_ASK'
135
136 enum Gtk2::IconSize
137 · 'invalid' / 'GTK_ICON_SIZE_INVALID'
138
139 · 'menu' / 'GTK_ICON_SIZE_MENU'
140
141 · 'small-toolbar' / 'GTK_ICON_SIZE_SMALL_TOOLBAR'
142
143 · 'large-toolbar' / 'GTK_ICON_SIZE_LARGE_TOOLBAR'
144
145 · 'button' / 'GTK_ICON_SIZE_BUTTON'
146
147 · 'dnd' / 'GTK_ICON_SIZE_DND'
148
149 · 'dialog' / 'GTK_ICON_SIZE_DIALOG'
150
151 flags Gtk2::ToolPaletteDragTargets
152 · 'items' / 'GTK_TOOL_PALETTE_DRAG_ITEMS'
153
154 · 'groups' / 'GTK_TOOL_PALETTE_DRAG_GROUPS'
155
156 enum Gtk2::ToolbarStyle
157 · 'icons' / 'GTK_TOOLBAR_ICONS'
158
159 · 'text' / 'GTK_TOOLBAR_TEXT'
160
161 · 'both' / 'GTK_TOOLBAR_BOTH'
162
163 · 'both-horiz' / 'GTK_TOOLBAR_BOTH_HORIZ'
164
166 Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
167 Gtk2::Container
168
170 Copyright (C) 2003-2011 by the gtk2-perl team.
171
172 This software is licensed under the LGPL. See Gtk2 for a full notice.
173
174
175
176perl v5.32.0 2020-07-28 Gtk2::ToolPalette(3)