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

NAME

6       Gtk2::ToggleButton
7

HIERARCHY

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

INTERFACES

19         Glib::Object::_Unregistered::AtkImplementorIface
20         Gtk2::Buildable
21         Glib::Object::_Unregistered::GtkActivatable
22

METHODS

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

PROPERTIES

47       'active' (boolean : readable / writable / private)
48           If the toggle button should be pressed in or not
49
50       'draw-indicator' (boolean : readable / writable / private)
51           If the toggle part of the button is displayed
52
53       'inconsistent' (boolean : readable / writable / private)
54           If the toggle button is in an "in between" state
55

SIGNALS

57       toggled (Gtk2::ToggleButton)
58

SEE ALSO

60       Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
61       Gtk2::Container, Gtk2::Bin, Gtk2::Button
62
64       Copyright (C) 2003-2008 by the gtk2-perl team.
65
66       This software is licensed under the LGPL.  See Gtk2 for a full notice.
67
68
69
70perl v5.12.0                      2010-05-02             Gtk2::ToggleButton(3)
Impressum