1Gtk2::MenuShell(3)    User Contributed Perl Documentation   Gtk2::MenuShell(3)
2
3
4

NAME

6       Gtk2::MenuShell - wrapper for GtkMenuShell
7

HIERARCHY

9         Glib::Object
10         +----Glib::InitiallyUnowned
11              +----Gtk2::Object
12                   +----Gtk2::Widget
13                        +----Gtk2::Container
14                             +----Gtk2::MenuShell
15

INTERFACES

17         Glib::Object::_Unregistered::AtkImplementorIface
18         Gtk2::Buildable
19

METHODS

21   $menu_shell->activate_item ($menu_item, $force_deactivate)
22       ·   $menu_item (Gtk2::Widget)
23
24       ·   $force_deactivate (boolean)
25
26   $menu_shell->append ($child)
27       ·   $child (Gtk2::Widget)
28
29   $menu_shell->cancel
30       Since: gtk+ 2.4
31
32   $menu_shell->deactivate
33   $menu_shell->deselect
34   $menu_shell->insert ($child, $position)
35       ·   $child (Gtk2::Widget)
36
37       ·   $position (integer)
38
39   $menu_shell->prepend ($child)
40       ·   $child (Gtk2::Widget)
41
42   $menu_shell->select_first ($search_sensitive)
43       ·   $search_sensitive (boolean)
44
45       Since: gtk+ 2.2
46
47   $menu_shell->select_item ($menu_item)
48       ·   $menu_item (Gtk2::Widget)
49
50   boolean = $menu_shell->get_take_focus
51       Since: gtk+ 2.8
52
53   $menu_shell->set_take_focus ($take_focus)
54       ·   $take_focus (boolean)
55
56       Since: gtk+ 2.8
57

PROPERTIES

59       'take-focus' (boolean : default true : readable / writable / private)
60           A boolean that determines whether the menu grabs the keyboard focus
61

SIGNALS

63       activate-current (Gtk2::MenuShell, boolean)
64       cancel (Gtk2::MenuShell)
65       cycle-focus (Gtk2::MenuShell, Gtk2::DirectionType)
66       deactivate (Gtk2::MenuShell)
67       insert (Gtk2::MenuShell, Gtk2::Widget, integer)
68       move-current (Gtk2::MenuShell, Gtk2::MenuDirectionType)
69       boolean = move-selected (Gtk2::MenuShell, integer)
70       selection-done (Gtk2::MenuShell)
71

ENUMS AND FLAGS

73   enum Gtk2::DirectionType
74       ·   'tab-forward' / 'GTK_DIR_TAB_FORWARD'
75
76       ·   'tab-backward' / 'GTK_DIR_TAB_BACKWARD'
77
78       ·   'up' / 'GTK_DIR_UP'
79
80       ·   'down' / 'GTK_DIR_DOWN'
81
82       ·   'left' / 'GTK_DIR_LEFT'
83
84       ·   'right' / 'GTK_DIR_RIGHT'
85
86   enum Gtk2::MenuDirectionType
87       ·   'parent' / 'GTK_MENU_DIR_PARENT'
88
89       ·   'child' / 'GTK_MENU_DIR_CHILD'
90
91       ·   'next' / 'GTK_MENU_DIR_NEXT'
92
93       ·   'prev' / 'GTK_MENU_DIR_PREV'
94

SEE ALSO

96       Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
97       Gtk2::Container
98
100       Copyright (C) 2003-2011 by the gtk2-perl team.
101
102       This software is licensed under the LGPL.  See Gtk2 for a full notice.
103
104
105
106perl v5.28.0                      2018-07-18                Gtk2::MenuShell(3)
Impressum