1Gtk2::MenuItem(3) User Contributed Perl Documentation Gtk2::MenuItem(3)
2
3
4
6 Gtk2::MenuItem
7
9 Glib::Object
10 +----Glib::InitiallyUnowned
11 +----Gtk2::Object
12 +----Gtk2::Widget
13 +----Gtk2::Container
14 +----Gtk2::Bin
15 +----Gtk2::Item
16 +----Gtk2::MenuItem
17
19 Glib::Object::_Unregistered::AtkImplementorIface
20 Gtk2::Buildable
21 Glib::Object::_Unregistered::GtkActivatable
22
24 widget = Gtk2::MenuItem->new ($label=undef)
25 · $label (string)
26
27 widget = Gtk2::MenuItem->new_with_label ($label=undef)
28 · $label (string)
29
30 widget = Gtk2::MenuItem->new_with_mnemonic ($label=undef)
31 · $label (string)
32
33 string = $menu_item->get_accel_path
34 Since: gtk+ 2.14
35
36 $menu_item->set_accel_path ($accel_path)
37 · $accel_path (string)
38
39 $menu_item->activate
40 $menu_item->deselect
41 $menu_item->remove_submenu
42 boolean = $menu_item->get_right_justified
43 $menu_item->set_right_justified ($right_justified)
44 · $right_justified (boolean)
45
46 $menu_item->select
47 widget or undef = $menu_item->get_submenu
48 $menu_item->set_submenu ($submenu)
49 · $submenu (Gtk2::Widget or undef)
50
51 $menu_item->toggle_size_allocate ($allocation)
52 · $allocation (integer)
53
54 requisition = $menu_item->toggle_size_request
56 'accel-path' (string : readable / writable / private)
57 Sets the accelerator path of the menu item
58
59 'label' (string : readable / writable / private)
60 The text for the child label
61
62 'right-justified' (boolean : readable / writable / private)
63 Sets whether the menu item appears justified at the right side of a
64 menu bar
65
66 'submenu' (Gtk2::Menu : readable / writable / private)
67 The submenu attached to the menu item, or NULL if it has none
68
69 'use-underline' (boolean : readable / writable / private)
70 If set, an underline in the text indicates the next character
71 should be used for the mnemonic accelerator key
72
74 activate (Gtk2::MenuItem)
75 activate-item (Gtk2::MenuItem)
76 toggle-size-request (Gtk2::MenuItem, gpointer)
77 toggle-size-allocate (Gtk2::MenuItem, integer)
78
80 Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
81 Gtk2::Container, Gtk2::Bin, Gtk2::Item
82
84 Copyright (C) 2003-2008 by the gtk2-perl team.
85
86 This software is licensed under the LGPL. See Gtk2 for a full notice.
87
88
89
90perl v5.12.0 2010-05-02 Gtk2::MenuItem(3)