Gtk2::MenuShell.3pm

Langue: en

Version: 2010-08-10 (ubuntu - 24/10/10)

Section: 3 (Bibliothèques de fonctions)

NAME

Gtk2::MenuShell - wrapper for GtkMenuShell

HIERARCHY

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

INTERFACES

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

METHODS

$menu_shell->activate_item ($menu_item, $force_deactivate)

$menu_item (Gtk2::Widget)
$force_deactivate (boolean)

$menu_shell->append ($child)

$child (Gtk2::Widget)

$menu_shell->cancel

Since: gtk+ 2.4

$menu_shell->deactivate

$menu_shell->deselect

$menu_shell->insert ($child, $position)

$child (Gtk2::Widget)
$position (integer)

$menu_shell->prepend ($child)

$child (Gtk2::Widget)

$menu_shell->select_first ($search_sensitive)

$search_sensitive (boolean)

Since: gtk+ 2.2

$menu_shell->select_item ($menu_item)

$menu_item (Gtk2::Widget)

boolean = $menu_shell->get_take_focus

Since: gtk+ 2.8

$menu_shell->set_take_focus ($take_focus)

$take_focus (boolean)

Since: gtk+ 2.8

PROPERTIES

'take-focus' (boolean : readable / writable / private)
A boolean that determines whether the menu grabs the keyboard focus
'ubuntu-local' (boolean : readable / writable / private)
Determines whether the menu is local

SIGNALS

cancel (Gtk2::MenuShell)
deactivate (Gtk2::MenuShell)
selection-done (Gtk2::MenuShell)
move-current (Gtk2::MenuShell, Gtk2::MenuDirectionType)
activate-current (Gtk2::MenuShell, boolean)
cycle-focus (Gtk2::MenuShell, Gtk2::DirectionType)
boolean = move-selected (Gtk2::MenuShell, integer)

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::MenuDirectionType

'parent' / 'GTK_MENU_DIR_PARENT'
'child' / 'GTK_MENU_DIR_CHILD'
'next' / 'GTK_MENU_DIR_NEXT'
'prev' / 'GTK_MENU_DIR_PREV'

SEE ALSO

Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container Copyright (C) 2003-2008 by the gtk2-perl team.

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