Gtk2::ToolPalette3pm
Wrapper for gtktoolpalette
Hierarchy
Glib::Object+----Glib::InitiallyUnowned+----Gtk2::Object+----Gtk2::Widget+----Gtk2::Container+----Gtk2::ToolPalette
Interfaces
Glib::Object::_Unregistered::AtkImplementorIfaceGtk2::BuildableGtk2::Orientable
Methods
widget = Gtk2::ToolPalette->new
$palette->add_drag_dest ($widget, $flags, $targets, $actions)
•
|
|
|---|---|
•
|
|
•
|
|
•
|
|
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)
•
|
|
|---|---|
•
|
|
toolitem or undef = $palette->get_drop_item ($x, $y)
•
|
|
|---|---|
•
|
|
boolean = $palette->get_exclusive ($group)
- •
-
$group(Gtk2::ToolItemGroup)
$palette->set_exclusive ($group, $exclusive)
•
|
|
|---|---|
•
|
|
boolean = $palette->get_expand ($group)
- •
-
$group(Gtk2::ToolItemGroup)
$palette->set_expand ($group, $expand)
•
|
|
|---|---|
•
|
|
integer = $palette->get_group_position ($group)
- •
-
$group(Gtk2::ToolItemGroup)
$palette->set_group_position ($group, $position)
•
|
|
|---|---|
•
|
|
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' |
Releases
3 releases since Debian 7 (Wheezy); the text changed 2 times.