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

Gtk2::ToolItem - wrapper for GtkToolItem

Glib::Object
+----Glib::InitiallyUnowned
     +----Gtk2::Object
          +----Gtk2::Widget
               +----Gtk2::Container
                    +----Gtk2::Bin
                         +----Gtk2::ToolItem

Glib::Object::_Unregistered::AtkImplementorIface
Gtk2::Buildable
Gtk2::Activatable

Since: gtk+ 2.20

boolean = $tool_item->get_expand

$tool_item->set_expand ($expand)

$expand (boolean)

boolean = $tool_item->get_homogeneous

$tool_item->set_homogeneous ($homogeneous)

$homogeneous (boolean)

boolean = $tool_item->get_is_important

$tool_item->set_is_important ($is_important)

$is_important (boolean)

orientation = $tool_item->get_orientation

widget = $tool_item->get_proxy_menu_item ($menu_item_id)

$menu_item_id (string)

$tool_item->set_proxy_menu_item ($menu_item_id, $menu_item)

  • $menu_item_id (string)
  • $menu_item (Gtk2::Widget or undef)

Since: gtk+ 2.6

widget = $tool_item->retrieve_proxy_menu_item

Since: gtk+ 2.20

orientation = $tool_item->get_text_orientation

Since: gtk+ 2.20

Since: gtk+ 2.20

Since: gtk+ 2.14

$tool_item->set_tooltip_markup ($markup)

$markup (string or undef)

Since: gtk+ 2.12

$tool_item->set_tooltip ($tooltips, $tip_text, $tip_private)

  • $tooltips (Gtk2::Tooltips)
  • $tip_text (string)
  • $tip_private (string)

$tool_item->set_tooltip_text ($text)

$text (string or undef)

Since: gtk+ 2.12

boolean = $toolitem->get_use_drag_window

$toolitem->set_use_drag_window ($use_drag_window)

$use_drag_window (boolean)

boolean = $toolitem->get_visible_horizontal

$toolitem->set_visible_horizontal ($visible_horizontal)

$visible_horizontal (boolean)

boolean = $toolitem->get_visible_vertical

$toolitem->set_visible_vertical ($visible_vertical)

$visible_vertical (boolean)

'is-important' (boolean : default false : readable / writable / private / static-nick / static-blurb)
Whether the toolbar item is considered important. When TRUE, toolbar buttons show text in GTK_TOOLBAR_BOTH_HORIZ mode
'visible-horizontal' (boolean : default true : readable / writable / private / static-nick / static-blurb)
Whether the toolbar item is visible when the toolbar is in a horizontal orientation.
'visible-vertical' (boolean : default true : readable / writable / private / static-nick / static-blurb)
Whether the toolbar item is visible when the toolbar is in a vertical orientation.

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

  • 'horizontal' / 'GTK_ORIENTATION_HORIZONTAL'
  • 'vertical' / 'GTK_ORIENTATION_VERTICAL'

  • 'normal' / 'GTK_RELIEF_NORMAL'
  • 'half' / 'GTK_RELIEF_HALF'
  • 'none' / 'GTK_RELIEF_NONE'

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

  • 'none' / 'PANGO_ELLIPSIZE_NONE'
  • 'start' / 'PANGO_ELLIPSIZE_START'
  • 'middle' / 'PANGO_ELLIPSIZE_MIDDLE'
  • 'end' / 'PANGO_ELLIPSIZE_END'

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

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

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

2023-07-25 perl v5.38.0