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

NAME

6       Gtk2::Menu
7

HIERARCHY

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

INTERFACES

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

METHODS

22   widget = Gtk2::Menu->new
23   accelgroup = $menu->get_accel_group
24   $menu->set_accel_group ($accel_group)
25           ·   $accel_group (Gtk2::AccelGroup)
26
27   string = $menu->get_accel_path
28           Since: gtk+ 2.14
29
30   $menu->set_accel_path ($accel_path)
31           ·   $accel_path (string)
32
33   widget = $menu->get_active
34   $menu->set_active ($index)
35           ·   $index (integer)
36
37   $menu->attach ($child, $left_attach, $right_attach, $top_attach,
38       $bottom_attach)
39           ·   $child (Gtk2::Widget)
40
41           ·   $left_attach (integer)
42
43           ·   $right_attach (integer)
44
45           ·   $top_attach (integer)
46
47           ·   $bottom_attach (integer)
48
49           Since: gtk+ 2.4
50
51   $menu->attach_to_widget ($attach_widget, $detacher)
52           ·   $attach_widget (Gtk2::Widget)
53
54           ·   $detacher (scalar)
55
56   widget = $menu->get_attach_widget
57   $menu->detach
58   list = Gtk2::Menu->get_for_attach_widget ($widget)
59           ·   $widget (Gtk2::Widget)
60
61           Since: gtk+ 2.6
62
63   integer = $menu->get_monitor
64           Since: gtk+ 2.14
65
66   $menu->set_monitor ($monitor_num)
67           ·   $monitor_num (integer)
68
69           Since: gtk+ 2.4
70
71   $menu->popdown
72   $menu->popup ($parent_menu_shell, $parent_menu_item, $menu_pos_func, $data,
73       $button, $activate_time)
74           ·   $parent_menu_shell (Gtk2::Widget or undef)
75
76           ·   $parent_menu_item (Gtk2::Widget or undef)
77
78           ·   $menu_pos_func (scalar)
79
80           ·   $data (scalar)
81
82           ·   $button (integer)
83
84           ·   $activate_time (integer)
85
86   $menu->reorder_child ($child, $position)
87           ·   $child (Gtk2::Widget)
88
89           ·   $position (integer)
90
91   $menu->reposition
92   $menu->set_screen ($screen)
93           ·   $screen (Gtk2::Gdk::Screen)
94
95           Since: gtk+ 2.2
96
97   boolean = $menu->get_tearoff_state
98   $menu->set_tearoff_state ($torn_off)
99           ·   $torn_off (boolean)
100
101   string = $menu->get_title
102   $menu->set_title ($title)
103           ·   $title (string)
104

PROPERTIES

106       'accel-group' (Gtk2::AccelGroup : readable / writable / private)
107           The accel group holding accelerators for the menu
108
109       'accel-path' (string : readable / writable / private)
110           An accel path used to conveniently construct accel paths of child
111           items
112
113       'active' (integer : readable / writable / private)
114           The currently selected menu item
115
116       'attach-widget' (Gtk2::Widget : readable / writable / private)
117           The widget the menu is attached to
118
119       'monitor' (integer : readable / writable / private)
120           The monitor the menu will be popped up on
121
122       'reserve-toggle-size' (boolean : readable / writable / private)
123           A boolean that indicates whether the menu reserves space for
124           toggles and icons
125
126       'tearoff-state' (boolean : readable / writable / private)
127           A boolean that indicates whether the menu is torn-off
128
129       'tearoff-title' (string : readable / writable / private)
130           A title that may be displayed by the window manager when this menu
131           is torn-off
132

SIGNALS

134       move-scroll (Gtk2::Menu, Gtk2::ScrollType)
135

ENUMS AND FLAGS

137   enum Gtk2::ScrollType
138       ·   'none' / 'GTK_SCROLL_NONE'
139
140       ·   'jump' / 'GTK_SCROLL_JUMP'
141
142       ·   'step-backward' / 'GTK_SCROLL_STEP_BACKWARD'
143
144       ·   'step-forward' / 'GTK_SCROLL_STEP_FORWARD'
145
146       ·   'page-backward' / 'GTK_SCROLL_PAGE_BACKWARD'
147
148       ·   'page-forward' / 'GTK_SCROLL_PAGE_FORWARD'
149
150       ·   'step-up' / 'GTK_SCROLL_STEP_UP'
151
152       ·   'step-down' / 'GTK_SCROLL_STEP_DOWN'
153
154       ·   'page-up' / 'GTK_SCROLL_PAGE_UP'
155
156       ·   'page-down' / 'GTK_SCROLL_PAGE_DOWN'
157
158       ·   'step-left' / 'GTK_SCROLL_STEP_LEFT'
159
160       ·   'step-right' / 'GTK_SCROLL_STEP_RIGHT'
161
162       ·   'page-left' / 'GTK_SCROLL_PAGE_LEFT'
163
164       ·   'page-right' / 'GTK_SCROLL_PAGE_RIGHT'
165
166       ·   'start' / 'GTK_SCROLL_START'
167
168       ·   'end' / 'GTK_SCROLL_END'
169

SEE ALSO

171       Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
172       Gtk2::Container, Gtk2::MenuShell
173
175       Copyright (C) 2003-2008 by the gtk2-perl team.
176
177       This software is licensed under the LGPL.  See Gtk2 for a full notice.
178
179
180
181perl v5.12.0                      2010-05-02                     Gtk2::Menu(3)
Impressum