Gtk2::Toolbar

Section: User Contributed Perl Documentation (3)
Updated: 2008-05-05
Index Return to Main Contents
 

NAME

Gtk2::Toolbar  

HIERARCHY

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

 

INTERFACES

  Glib::Object::_Unregistered::AtkImplementorIface

 

METHODS

 

widget = Gtk2::Toolbar->new

 

widget = $toolbar->append_element ($type, $widget, $text, $tooltip_text, $tooltip_private_text, $icon, $callback=undef, $user_data=undef)

* $type (Gtk2::ToolbarChildType)
* $widget (Gtk2::Widget or undef)
* $text (string)
* $tooltip_text (string or undef)
* $tooltip_private_text (string or undef)
* $icon (Gtk2::Widget or undef)
* $callback (subroutine)
* $user_data (scalar)
 

widget = $toolbar->append_item ($text, $tooltip_text, $tooltip_private_text, $icon, $callback=undef, $user_data=undef)

* $text (string)
* $tooltip_text (string or undef)
* $tooltip_private_text (string or undef)
* $icon (Gtk2::Widget or undef)
* $callback (subroutine)
* $user_data (scalar)
 

$toolbar->append_space

 

$toolbar->append_widget ($widget, $tooltip_text, $tooltip_private_text)

* $widget (Gtk2::Widget)
* $tooltip_text (string or undef)
* $tooltip_private_text (string or undef)
 

$toolbar->set_drop_highlight_item ($tool_item, $index)

* $tool_item (Gtk2::ToolItem or undef)
* $index (integer)

Since: gtk+ 2.4

 

integer = $toolbar->get_drop_index ($x, $y)

* $x (integer)
* $y (integer)

Since: gtk+ 2.4

 

iconsize = $toolbar->get_icon_size

 

$toolbar->set_icon_size ($icon_size)

* $icon_size (Gtk2::IconSize)
 

$toolbar->insert ($item, $pos)

* $item (Gtk2::ToolItem)
* $pos (integer)

Since: gtk+ 2.4

 

widget = $toolbar->insert_element ($type, $widget, $text, $tooltip_text, $tooltip_private_text, $icon, $callback, $user_data, $position)

* $type (Gtk2::ToolbarChildType)
* $widget (Gtk2::Widget or undef)
* $text (string)
* $tooltip_text (string or undef)
* $tooltip_private_text (string or undef)
* $icon (Gtk2::Widget or undef)
* $callback (subroutine)
* $user_data (scalar)
* $position (integer)
 

widget = $toolbar->insert_item ($text, $tooltip_text, $tooltip_private_text, $icon, $callback, $user_data, $position)

* $text (string)
* $tooltip_text (string or undef)
* $tooltip_private_text (string or undef)
* $icon (Gtk2::Widget or undef)
* $callback (subroutine)
* $user_data (scalar)
* $position (integer)
 

$toolbar->insert_space ($position)

* $position (integer)
 

widget = $toolbar->insert_stock ($stock_id, $tooltip_text, $tooltip_private_text, $callback, $user_data, $position)

* $stock_id (string)
* $tooltip_text (string or undef)
* $tooltip_private_text (string or undef)
* $callback (subroutine)
* $user_data (scalar)
* $position (integer)
 

$toolbar->insert_widget ($widget, $tooltip_text, $tooltip_private_text, $position)

* $widget (Gtk2::Widget)
* $tooltip_text (string or undef)
* $tooltip_private_text (string or undef)
* $position (integer)
 

integer = $toolbar->get_item_index ($item)

* $item (Gtk2::ToolItem)

Since: gtk+ 2.4

 

integer = $toolbar->get_n_items

Since: gtk+ 2.4
 

toolitem or undef = $toolbar->get_nth_item ($n)

* $n (integer)

Since: gtk+ 2.4

 

orientation = $toolbar->get_orientation

 

$toolbar->set_orientation ($orientation)

* $orientation (Gtk2::Orientation)
 

widget = $toolbar->prepend_element ($type, $widget, $text, $tooltip_text, $tooltip_private_text, $icon, $callback=undef, $user_data=undef)

* $type (Gtk2::ToolbarChildType)
* $widget (Gtk2::Widget or undef)
* $text (string)
* $tooltip_text (string or undef)
* $tooltip_private_text (string or undef)
* $icon (Gtk2::Widget or undef)
* $callback (subroutine)
* $user_data (scalar)
 

widget = $toolbar->prepend_item ($text, $tooltip_text, $tooltip_private_text, $icon, $callback=undef, $user_data=undef)

* $text (string)
* $tooltip_text (string or undef)
* $tooltip_private_text (string or undef)
* $icon (Gtk2::Widget or undef)
* $callback (subroutine)
* $user_data (scalar)
 

$toolbar->prepend_space

 

$toolbar->prepend_widget ($widget, $tooltip_text, $tooltip_private_text)

* $widget (Gtk2::Widget)
* $tooltip_text (string or undef)
* $tooltip_private_text (string or undef)
 

reliefstyle = $toolbar->get_relief_style

Since: gtk+ 2.4
 

$toolbar->remove_space ($position)

* $position (integer)
 

boolean = $toolbar->get_show_arrow

Since: gtk+ 2.4
 

$toolbar->set_show_arrow ($show_arrow)

* $show_arrow (boolean)

Since: gtk+ 2.4

 

toolbarstyle = $toolbar->get_style

 

$toolbar->set_style ($style)

* $style (Gtk2::ToolbarStyle)
 

boolean = $toolbar->get_tooltips

 

$toolbar->set_tooltips ($enable)

* $enable (boolean)
 

$toolbar->unset_icon_size

 

$toolbar->unset_style

 

PROPERTIES

'icon-size' (Gtk2::IconSize : readable / writable / private)
Size of icons in this toolbar
'icon-size-set' (boolean : readable / writable / private)
Whether the icon-size property has been set
'orientation' (Gtk2::Orientation : readable / writable / private)
The orientation of the toolbar
'show-arrow' (boolean : readable / writable / private)
If an arrow should be shown if the toolbar doesn't fit
'toolbar-style' (Gtk2::ToolbarStyle : readable / writable / private)
How to draw the toolbar
'tooltips' (boolean : readable / writable / private)
If the tooltips of the toolbar should be active or not
 

SIGNALS

boolean = move-focus (Gtk2::Toolbar, Gtk2::DirectionType)
orientation-changed (Gtk2::Toolbar, Gtk2::Orientation)
style-changed (Gtk2::Toolbar, Gtk2::ToolbarStyle)
boolean = popup-context-menu (Gtk2::Toolbar, integer, integer, integer)
boolean = focus-home-or-end (Gtk2::Toolbar, boolean)
 

ENUMS AND FLAGS

 

enum Gtk2::DirectionType

* 'tab-forward' / 'GTK_DIR_TAB_FORWARD'
* 'tab-backward' / 'GTK_DIR_TAB_BACKWARD'
* 'up' / 'GTK_DIR_UP'
* 'down' / 'GTK_DIR_DOWN'
* 'left' / 'GTK_DIR_LEFT'
* 'right' / 'GTK_DIR_RIGHT'
 

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'
 

enum Gtk2::Orientation

* 'horizontal' / 'GTK_ORIENTATION_HORIZONTAL'
* 'vertical' / 'GTK_ORIENTATION_VERTICAL'
 

enum Gtk2::ReliefStyle

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

enum Gtk2::ToolbarChildType

* 'space' / 'GTK_TOOLBAR_CHILD_SPACE'
* 'button' / 'GTK_TOOLBAR_CHILD_BUTTON'
* 'togglebutton' / 'GTK_TOOLBAR_CHILD_TOGGLEBUTTON'
* 'radiobutton' / 'GTK_TOOLBAR_CHILD_RADIOBUTTON'
* 'widget' / 'GTK_TOOLBAR_CHILD_WIDGET'
 

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-2008 by the gtk2-perl team.

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


 

Index

NAME
HIERARCHY
INTERFACES
METHODS
widget = Gtk2::Toolbar->new
widget = $toolbar->append_element ($type, $widget, $text, $tooltip_text, $tooltip_private_text, $icon, $callback=undef, $user_data=undef)
widget = $toolbar->append_item ($text, $tooltip_text, $tooltip_private_text, $icon, $callback=undef, $user_data=undef)
$toolbar->append_space
$toolbar->append_widget ($widget, $tooltip_text, $tooltip_private_text)
$toolbar->set_drop_highlight_item ($tool_item, $index)
integer = $toolbar->get_drop_index ($x, $y)
iconsize = $toolbar->get_icon_size
$toolbar->set_icon_size ($icon_size)
$toolbar->insert ($item, $pos)
widget = $toolbar->insert_element ($type, $widget, $text, $tooltip_text, $tooltip_private_text, $icon, $callback, $user_data, $position)
widget = $toolbar->insert_item ($text, $tooltip_text, $tooltip_private_text, $icon, $callback, $user_data, $position)
$toolbar->insert_space ($position)
widget = $toolbar->insert_stock ($stock_id, $tooltip_text, $tooltip_private_text, $callback, $user_data, $position)
$toolbar->insert_widget ($widget, $tooltip_text, $tooltip_private_text, $position)
integer = $toolbar->get_item_index ($item)
integer = $toolbar->get_n_items
toolitem or undef = $toolbar->get_nth_item ($n)
orientation = $toolbar->get_orientation
$toolbar->set_orientation ($orientation)
widget = $toolbar->prepend_element ($type, $widget, $text, $tooltip_text, $tooltip_private_text, $icon, $callback=undef, $user_data=undef)
widget = $toolbar->prepend_item ($text, $tooltip_text, $tooltip_private_text, $icon, $callback=undef, $user_data=undef)
$toolbar->prepend_space
$toolbar->prepend_widget ($widget, $tooltip_text, $tooltip_private_text)
reliefstyle = $toolbar->get_relief_style
$toolbar->remove_space ($position)
boolean = $toolbar->get_show_arrow
$toolbar->set_show_arrow ($show_arrow)
toolbarstyle = $toolbar->get_style
$toolbar->set_style ($style)
boolean = $toolbar->get_tooltips
$toolbar->set_tooltips ($enable)
$toolbar->unset_icon_size
$toolbar->unset_style
PROPERTIES
SIGNALS
ENUMS AND FLAGS
enum Gtk2::DirectionType
enum Gtk2::IconSize
enum Gtk2::Orientation
enum Gtk2::ReliefStyle
enum Gtk2::ToolbarChildType
enum Gtk2::ToolbarStyle
SEE ALSO
COPYRIGHT

linux.jgfs.net manual pages