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 If the toggle button should be pressed in or not
49
50 'draw-indicator' (boolean : default false : readable / writable /
51 private)
52 If the toggle part of the button is displayed
53
54 'inconsistent' (boolean : default false : readable / writable /
55 private)
56 If the toggle button is in an "in between" state
57
59 toggled (Gtk2::ToggleButton)
60
62 Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
63 Gtk2::Container, Gtk2::Bin, Gtk2::Button
64
66 Copyright (C) 2003-2011 by the gtk2-perl team.
67
68 This software is licensed under the LGPL. See Gtk2 for a full notice.
69
70
71
72perl v5.28.1 2019-02-02 Gtk2::ToggleButton(3)