Gtk2::ToolPalette(3pm) User Contributed Perl Documentation Gtk2::ToolPalette(3pm)
NAME
Gtk2::ToolPalette - wrapper for GtkToolPalette
HIERARCHY
Glib::Object
+----Glib::InitiallyUnowned
+----Gtk2::Object
+----Gtk2::Widget
+----Gtk2::Container
+----Gtk2::ToolPalette
INTERFACES
Glib::Object::_Unregistered::AtkImplementorIface
Gtk2::Buildable
Gtk2::Orientable
METHODS
widget = Gtk2::ToolPalette->new
$palette->add_drag_dest ($widget, $flags, $targets, $actions)
o $widget (Gtk2::Widget)
o $flags (Gtk2::DestDefaults)
o $targets (Gtk2::ToolPaletteDragTargets)
o $actions (Gtk2::Gdk::DragAction)
widget = $palette->get_drag_item ($selection)
o $selection (Gtk2::SelectionData)
$palette->set_drag_source ($targets)
o $targets (Gtk2::ToolPaletteDragTargets)
targetentry = Gtk2::ToolPalette->get_drag_target_group
targetentry = Gtk2::ToolPalette->get_drag_target_item
toolitemgroup or undef = $palette->get_drop_group ($x, $y)
o $x (integer)
o $y (integer)
toolitem or undef = $palette->get_drop_item ($x, $y)
o $x (integer)
o $y (integer)
boolean = $palette->get_exclusive ($group)
o $group (Gtk2::ToolItemGroup)
$palette->set_exclusive ($group, $exclusive)
o $group (Gtk2::ToolItemGroup)
o $exclusive (boolean)
boolean = $palette->get_expand ($group)
o $group (Gtk2::ToolItemGroup)
$palette->set_expand ($group, $expand)
o $group (Gtk2::ToolItemGroup)
o $expand (boolean)
integer = $palette->get_group_position ($group)
o $group (Gtk2::ToolItemGroup)
$palette->set_group_position ($group, $position)
o $group (Gtk2::ToolItemGroup)
o $position (integer)
adjustment = $palette->get_hadjustment
iconsize = $palette->get_icon_size
$palette->set_icon_size ($icon_size)
o $icon_size (Gtk2::IconSize)
toolbarstyle = $palette->get_style
$palette->set_style ($style)
o $style (Gtk2::ToolbarStyle)
$palette->unset_icon_size
$palette->unset_style
adjustment = $palette->get_vadjustment
PROPERTIES
'icon-size' (Gtk2::IconSize : default "small-toolbar" : readable / writable / private)
Size of icons in this tool palette
'icon-size-set' (boolean : default false : readable / writable / private)
Whether the icon-size property has been set
'toolbar-style' (Gtk2::ToolbarStyle : default "icons" : readable / writable / private)
Style of items in the tool palette
CHILD PROPERTIES
'exclusive' (boolean : default false : readable / writable / private)
Whether the item group should be the only expanded at a given time
'expand' (boolean : default false : readable / writable / private)
Whether the item group should receive extra space when the palette grows
SIGNALS
set-scroll-adjustments (Gtk2::ToolPalette, Gtk2::Adjustment, Gtk2::Adjustment)
ENUMS AND FLAGS
flags Gtk2::DestDefaults
o 'motion' / 'GTK_DEST_DEFAULT_MOTION'
o 'highlight' / 'GTK_DEST_DEFAULT_HIGHLIGHT'
o 'drop' / 'GTK_DEST_DEFAULT_DROP'
o 'all' / 'GTK_DEST_DEFAULT_ALL'
flags Gtk2::Gdk::DragAction
o 'default' / 'GDK_ACTION_DEFAULT'
o 'copy' / 'GDK_ACTION_COPY'
o 'move' / 'GDK_ACTION_MOVE'
o 'link' / 'GDK_ACTION_LINK'
o 'private' / 'GDK_ACTION_PRIVATE'
o 'ask' / 'GDK_ACTION_ASK'
enum Gtk2::IconSize
o 'invalid' / 'GTK_ICON_SIZE_INVALID'
o 'menu' / 'GTK_ICON_SIZE_MENU'
o 'small-toolbar' / 'GTK_ICON_SIZE_SMALL_TOOLBAR'
o 'large-toolbar' / 'GTK_ICON_SIZE_LARGE_TOOLBAR'
o 'button' / 'GTK_ICON_SIZE_BUTTON'
o 'dnd' / 'GTK_ICON_SIZE_DND'
o 'dialog' / 'GTK_ICON_SIZE_DIALOG'
flags Gtk2::ToolPaletteDragTargets
o 'items' / 'GTK_TOOL_PALETTE_DRAG_ITEMS'
o 'groups' / 'GTK_TOOL_PALETTE_DRAG_GROUPS'
enum Gtk2::ToolbarStyle
o 'icons' / 'GTK_TOOLBAR_ICONS'
o 'text' / 'GTK_TOOLBAR_TEXT'
o 'both' / 'GTK_TOOLBAR_BOTH'
o 'both-horiz' / 'GTK_TOOLBAR_BOTH_HORIZ'
SEE ALSO
Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container
COPYRIGHT
Copyright (C) 2003-2011 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
perl v5.14.2 2012-05-27 Gtk2::ToolPalette(3pm)