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

METHODS

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

PROPERTIES

101       'tearoff-state' (boolean : readable / writable / private)
102           A boolean that indicates whether the menu is torn-off
103
104       'tearoff-title' (string : readable / writable / private)
105           A title that may be displayed by the window manager when this menu
106           is torn-off
107

SIGNALS

109       move-scroll (Gtk2::Menu, Gtk2::ScrollType)
110

ENUMS AND FLAGS

112       enum Gtk2::ScrollType
113
114       * 'none' / 'GTK_SCROLL_NONE'
115       * 'jump' / 'GTK_SCROLL_JUMP'
116       * 'step-backward' / 'GTK_SCROLL_STEP_BACKWARD'
117       * 'step-forward' / 'GTK_SCROLL_STEP_FORWARD'
118       * 'page-backward' / 'GTK_SCROLL_PAGE_BACKWARD'
119       * 'page-forward' / 'GTK_SCROLL_PAGE_FORWARD'
120       * 'step-up' / 'GTK_SCROLL_STEP_UP'
121       * 'step-down' / 'GTK_SCROLL_STEP_DOWN'
122       * 'page-up' / 'GTK_SCROLL_PAGE_UP'
123       * 'page-down' / 'GTK_SCROLL_PAGE_DOWN'
124       * 'step-left' / 'GTK_SCROLL_STEP_LEFT'
125       * 'step-right' / 'GTK_SCROLL_STEP_RIGHT'
126       * 'page-left' / 'GTK_SCROLL_PAGE_LEFT'
127       * 'page-right' / 'GTK_SCROLL_PAGE_RIGHT'
128       * 'start' / 'GTK_SCROLL_START'
129       * 'end' / 'GTK_SCROLL_END'
130

SEE ALSO

132       Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
133       Gtk2::Container, Gtk2::MenuShell
134
136       Copyright (C) 2003-2007 by the gtk2-perl team.
137
138       This software is licensed under the LGPL.  See Gtk2 for a full notice.
139
140
141
142perl v5.8.8                       2007-03-18                     Gtk2::Menu(3)
Impressum