Webhosting and cheap domain registration service
  

 Home

GTK Classes
Prev GtkToggleButton Next

GtkToggleButton

Button that retains its state.

Object Hierarchy

GtkObject
`-- GtkWidget
       `-- GtkContainer
              `-- GtkBin
                     `-- GtkButton
                            `-- GtkToggleButton

Description

A GtkToggleButton is a button that will retain its state following activation. This can be either the active state, GtkStateType GTK_STATE_ACTIVE, or the normal state, GTK_STATE_NORMAL. The active state has the appearance of a button that has been pressed down and not released.

The "toggled" signal is emitted as part of the process when the button is activated. Activation also triggers a change from the current state to its opposite value.

GtkToggleButton also provides some base elements for GtkCheckButton and GtkRadioButton widgets.

Constructor

GtkToggleButton ([string label ]);

-- Creates a button that can be toggled between two states.

Methods

set_mode()
  Toggles indicator mode.
set_active()
  Sets state.
get_active()
  Returns true if active.
toggled()
  Causes the "toggled" signal to be emitted.

Signals

"toggled"
  Emitted when the toggled() method is called.

Properties

draw_indicator:
  Toggle indicator display.


Prev Home Next
widget_selected Up GtkToggleButton Constructor

 

  

Network sites:

Cheap domain registrar's cheap domain registration service

$8.95 domain registration : Buy domain name or register domain name 

 
 
Quotes:
Happiness is the meaning and the purpose of life, the whole aim and end of human existence.  
 
 

Disclaimer: This documentation is provided only for the benefits of our webhosting customers.
For authoritative source of the documentation, please refer to http://gtk.php.net/docs.php