Gtk2::ToggleButton

Section: User Contributed Perl Documentation (3)
Updated: 2008-05-05
Index Return to Main Contents
 

NAME

Gtk2::ToggleButton  

HIERARCHY

  Glib::Object
  +----Glib::InitiallyUnowned
       +----Gtk2::Object
            +----Gtk2::Widget
                 +----Gtk2::Container
                      +----Gtk2::Bin
                           +----Gtk2::Button
                                +----Gtk2::ToggleButton

 

INTERFACES

  Glib::Object::_Unregistered::AtkImplementorIface

 

METHODS

 

widget = Gtk2::ToggleButton->new ($label=undef)

* $label (string)
 

widget = Gtk2::ToggleButton->new_with_label ($label=undef)

* $label (string)
 

widget = Gtk2::ToggleButton->new_with_mnemonic ($label=undef)

* $label (string)
 

boolean = $toggle_button->get_active

 

$toggle_button->set_active ($is_active)

* $is_active (boolean)
 

boolean = $toggle_button->get_inconsistent

 

$toggle_button->set_inconsistent ($setting)

* $setting (boolean)
 

boolean = $toggle_button->get_mode

 

$toggle_button->set_mode ($draw_indicator)

* $draw_indicator (boolean)
 

$toggle_button->toggled

 

PROPERTIES

'active' (boolean : readable / writable / private)
If the toggle button should be pressed in or not
'draw-indicator' (boolean : readable / writable / private)
If the toggle part of the button is displayed
'inconsistent' (boolean : readable / writable / private)
If the toggle button is in an ``in between'' state
 

SIGNALS

toggled (Gtk2::ToggleButton)
 

SEE ALSO

Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Bin, Gtk2::Button  

COPYRIGHT

Copyright (C) 2003-2008 by the gtk2-perl team.

This software is licensed under the LGPL. See Gtk2 for a full notice.


 

Index

NAME
HIERARCHY
INTERFACES
METHODS
widget = Gtk2::ToggleButton->new ($label=undef)
widget = Gtk2::ToggleButton->new_with_label ($label=undef)
widget = Gtk2::ToggleButton->new_with_mnemonic ($label=undef)
boolean = $toggle_button->get_active
$toggle_button->set_active ($is_active)
boolean = $toggle_button->get_inconsistent
$toggle_button->set_inconsistent ($setting)
boolean = $toggle_button->get_mode
$toggle_button->set_mode ($draw_indicator)
$toggle_button->toggled
PROPERTIES
SIGNALS
SEE ALSO
COPYRIGHT

linux.jgfs.net manual pages