Gtk2::ToolPalette(3) User Contributed Perl Documentation Gtk2::ToolPalette(3)

Gtk2::ToolPalette - wrapper for GtkToolPalette

Glib::Object
+----Glib::InitiallyUnowned
     +----Gtk2::Object
          +----Gtk2::Widget
               +----Gtk2::Container
                    +----Gtk2::ToolPalette

Glib::Object::_Unregistered::AtkImplementorIface
Gtk2::Buildable
Gtk2::Orientable

$palette->add_drag_dest ($widget, $flags, $targets, $actions)

  • $widget (Gtk2::Widget)
  • $flags (Gtk2::DestDefaults)
  • $targets (Gtk2::ToolPaletteDragTargets)
  • $actions (Gtk2::Gdk::DragAction)

$selection (Gtk2::SelectionData)

$palette->set_drag_source ($targets)

$targets (Gtk2::ToolPaletteDragTargets)

targetentry = Gtk2::ToolPalette->get_drag_target_group

targetentry = Gtk2::ToolPalette->get_drag_target_item

  • $x (integer)
  • $y (integer)

  • $x (integer)
  • $y (integer)

boolean = $palette->get_exclusive ($group)

$group (Gtk2::ToolItemGroup)

$palette->set_exclusive ($group, $exclusive)

  • $group (Gtk2::ToolItemGroup)
  • $exclusive (boolean)

boolean = $palette->get_expand ($group)

$group (Gtk2::ToolItemGroup)

$palette->set_expand ($group, $expand)

  • $group (Gtk2::ToolItemGroup)
  • $expand (boolean)

$group (Gtk2::ToolItemGroup)

$palette->set_group_position ($group, $position)

  • $group (Gtk2::ToolItemGroup)
  • $position (integer)

adjustment = $palette->get_hadjustment

$palette->set_icon_size ($icon_size)

$icon_size (Gtk2::IconSize)

$palette->set_style ($style)

$style (Gtk2::ToolbarStyle)

adjustment = $palette->get_vadjustment

'icon-size' (Gtk2::IconSize : default "small-toolbar" : readable / writable / private / static-nick / static-blurb)
Size of icons in this tool palette
'icon-size-set' (boolean : default false : readable / writable / private / static-nick / static-blurb)
Whether the icon-size property has been set
'toolbar-style' (Gtk2::ToolbarStyle : default "icons" : readable / writable / private / static-nick / static-blurb)
Style of items in the tool palette

'exclusive' (boolean : default false : readable / writable / private / static-nick / static-blurb)
Whether the item group should be the only expanded at a given time
'expand' (boolean : default false : readable / writable / private / static-nick / static-blurb)
Whether the item group should receive extra space when the palette grows

  • 'motion' / 'GTK_DEST_DEFAULT_MOTION'
  • 'highlight' / 'GTK_DEST_DEFAULT_HIGHLIGHT'
  • 'drop' / 'GTK_DEST_DEFAULT_DROP'
  • 'all' / 'GTK_DEST_DEFAULT_ALL'

  • 'default' / 'GDK_ACTION_DEFAULT'
  • 'copy' / 'GDK_ACTION_COPY'
  • 'move' / 'GDK_ACTION_MOVE'
  • 'link' / 'GDK_ACTION_LINK'
  • 'private' / 'GDK_ACTION_PRIVATE'
  • 'ask' / 'GDK_ACTION_ASK'

  • 'invalid' / 'GTK_ICON_SIZE_INVALID'
  • 'menu' / 'GTK_ICON_SIZE_MENU'
  • 'small-toolbar' / 'GTK_ICON_SIZE_SMALL_TOOLBAR'
  • 'large-toolbar' / 'GTK_ICON_SIZE_LARGE_TOOLBAR'
  • 'button' / 'GTK_ICON_SIZE_BUTTON'
  • 'dnd' / 'GTK_ICON_SIZE_DND'
  • 'dialog' / 'GTK_ICON_SIZE_DIALOG'

  • 'items' / 'GTK_TOOL_PALETTE_DRAG_ITEMS'
  • 'groups' / 'GTK_TOOL_PALETTE_DRAG_GROUPS'

  • 'icons' / 'GTK_TOOLBAR_ICONS'
  • 'text' / 'GTK_TOOLBAR_TEXT'
  • 'both' / 'GTK_TOOLBAR_BOTH'
  • 'both-horiz' / 'GTK_TOOLBAR_BOTH_HORIZ'

Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container

Copyright (C) 2003-2011 by the gtk2-perl team.

This software is licensed under the LGPL. See Gtk2 for a full notice.

2022-05-29 perl v5.36.0