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       static-nick / static-blurb)
61           A boolean that determines whether the menu grabs the keyboard focus
62

SIGNALS

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

ENUMS AND FLAGS

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

SEE ALSO

97       Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
98       Gtk2::Container
99
101       Copyright (C) 2003-2011 by the gtk2-perl team.
102
103       This software is licensed under the LGPL.  See Gtk2 for a full notice.
104
105
106
107perl v5.32.1                      2021-01-27                Gtk2::MenuShell(3)
Impressum