---
name: "Gtk2::ToolPalette"
section: "3pm"
platform: "linux"
package: "libgtk2-perl-doc"
version: "2:1.24992-1"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/Gtk2::ToolPalette"
---

# Gtk2::ToolPalette(3pm)

wrapper for GtkToolPalette

## 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)

- •

  `$widget` (Gtk2::Widget)

- •

  `$flags` (Gtk2::DestDefaults)

- •

  `$targets` (Gtk2::ToolPaletteDragTargets)

- •

  `$actions` (Gtk2::Gdk::DragAction)

### widget = $palette-\>get\_drag\_item ($selection)

- •

  `$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

### toolitemgroup or undef = $palette-\>get\_drop\_group ($x, $y)

- •

  `$x` (integer)

- •

  `$y` (integer)

### toolitem or undef = $palette-\>get\_drop\_item ($x, $y)

- •

  `$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)

### integer = $palette-\>get\_group\_position ($group)

- •

  `$group` (Gtk2::ToolItemGroup)

### $palette-\>set\_group\_position ($group, $position)

- •

  `$group` (Gtk2::ToolItemGroup)

- •

  `$position` (integer)

### adjustment = $palette-\>get\_hadjustment

### iconsize = $palette-\>get\_icon\_size

### $palette-\>set\_icon\_size ($icon\_size)

- •

  `$icon_size` (Gtk2::IconSize)

### toolbarstyle = $palette-\>get\_style

### $palette-\>set\_style ($style)

- •

  `$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

- •

  'motion' / 'GTK\_DEST\_DEFAULT\_MOTION'

- •

  'highlight' / 'GTK\_DEST\_DEFAULT\_HIGHLIGHT'

- •

  'drop' / 'GTK\_DEST\_DEFAULT\_DROP'

- •

  'all' / 'GTK\_DEST\_DEFAULT\_ALL'

### flags Gtk2::Gdk::DragAction

- •

  'default' / 'GDK\_ACTION\_DEFAULT'

- •

  'copy' / 'GDK\_ACTION\_COPY'

- •

  'move' / 'GDK\_ACTION\_MOVE'

- •

  'link' / 'GDK\_ACTION\_LINK'

- •

  'private' / 'GDK\_ACTION\_PRIVATE'

- •

  'ask' / 'GDK\_ACTION\_ASK'

### enum Gtk2::IconSize

- •

  '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'

### flags Gtk2::ToolPaletteDragTargets

- •

  'items' / 'GTK\_TOOL\_PALETTE\_DRAG\_ITEMS'

- •

  'groups' / 'GTK\_TOOL\_PALETTE\_DRAG\_GROUPS'

### enum Gtk2::ToolbarStyle

- •

  'icons' / 'GTK\_TOOLBAR\_ICONS'

- •

  'text' / 'GTK\_TOOLBAR\_TEXT'

- •

  'both' / 'GTK\_TOOLBAR\_BOTH'

- •

  '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.
