1Gtk2::CheckMenuItem(3)User Contributed Perl DocumentationGtk2::CheckMenuItem(3)
2
3
4

NAME

6       Gtk2::CheckMenuItem - wrapper for GtkCheckMenuItem
7

HIERARCHY

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                                            +----Gtk2::CheckMenuItem
18

INTERFACES

20         Glib::Object::_Unregistered::AtkImplementorIface
21         Gtk2::Buildable
22         Gtk2::Activatable
23

METHODS

25   widget = Gtk2::CheckMenuItem->new ($label=undef)
26       •   $label (string)
27
28   widget = Gtk2::CheckMenuItem->new_with_label ($label=undef)
29       •   $label (string)
30
31   widget = Gtk2::CheckMenuItem->new_with_mnemonic ($label=undef)
32       •   $label (string)
33
34   boolean = $check_menu_item->get_active
35   $check_menu_item->set_active ($is_active)
36       •   $is_active (boolean)
37
38   boolean = $check_menu_item->get_draw_as_radio
39       Since: gtk+ 2.4
40
41   $check_menu_item->set_draw_as_radio ($draw_as_radio)
42       •   $draw_as_radio (boolean)
43
44       Since: gtk+ 2.4
45
46   boolean = $check_menu_item->get_inconsistent
47   $check_menu_item->set_inconsistent ($setting)
48       •   $setting (boolean)
49
50   $menu_item->set_show_toggle ($always)
51       •   $always (boolean)
52
53   $check_menu_item->toggled

PROPERTIES

55       'active' (boolean : default false : readable / writable / private /
56       static-nick / static-blurb)
57           Whether the menu item is checked
58
59       'draw-as-radio' (boolean : default false : readable / writable /
60       private / static-nick / static-blurb)
61           Whether the menu item looks like a radio menu item
62
63       'inconsistent' (boolean : default false : readable / writable / private
64       / static-nick / static-blurb)
65           Whether to display an "inconsistent" state
66

STYLE PROPERTIES

68       'indicator-size' (integer : default 13 : readable / private / static-
69       nick / static-blurb)
70           Size of check or radio indicator
71

SIGNALS

73       toggled (Gtk2::CheckMenuItem)
74

SEE ALSO

76       Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
77       Gtk2::Container, Gtk2::Bin, Gtk2::Item, Gtk2::MenuItem
78
80       Copyright (C) 2003-2011 by the gtk2-perl team.
81
82       This software is licensed under the LGPL.  See Gtk2 for a full notice.
83
84
85
86perl v5.38.0                      2023-07-20            Gtk2::CheckMenuItem(3)
Impressum