1Gtk2::ToggleButton(3) User Contributed Perl DocumentationGtk2::ToggleButton(3)
2
3
4
6 Gtk2::ToggleButton - wrapper for GtkToggleButton
7
9 Glib::Object
10 +----Glib::InitiallyUnowned
11 +----Gtk2::Object
12 +----Gtk2::Widget
13 +----Gtk2::Container
14 +----Gtk2::Bin
15 +----Gtk2::Button
16 +----Gtk2::ToggleButton
17
19 Glib::Object::_Unregistered::AtkImplementorIface
20 Gtk2::Buildable
21 Gtk2::Activatable
22
24 widget = Gtk2::ToggleButton->new ($label=undef)
25 • $label (string)
26
27 widget = Gtk2::ToggleButton->new_with_label ($label=undef)
28 • $label (string)
29
30 widget = Gtk2::ToggleButton->new_with_mnemonic ($label=undef)
31 • $label (string)
32
33 boolean = $toggle_button->get_active
34 $toggle_button->set_active ($is_active)
35 • $is_active (boolean)
36
37 boolean = $toggle_button->get_inconsistent
38 $toggle_button->set_inconsistent ($setting)
39 • $setting (boolean)
40
41 boolean = $toggle_button->get_mode
42 $toggle_button->set_mode ($draw_indicator)
43 • $draw_indicator (boolean)
44
45 $toggle_button->toggled
47 'active' (boolean : default false : readable / writable / private /
48 static-nick / static-blurb)
49 If the toggle button should be pressed in or not
50
51 'draw-indicator' (boolean : default false : readable / writable /
52 private / static-nick / static-blurb)
53 If the toggle part of the button is displayed
54
55 'inconsistent' (boolean : default false : readable / writable / private
56 / static-nick / static-blurb)
57 If the toggle button is in an "in between" state
58
60 toggled (Gtk2::ToggleButton)
61
63 Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
64 Gtk2::Container, Gtk2::Bin, Gtk2::Button
65
67 Copyright (C) 2003-2011 by the gtk2-perl team.
68
69 This software is licensed under the LGPL. See Gtk2 for a full notice.
70
71
72
73perl v5.34.0 2022-01-21 Gtk2::ToggleButton(3)