GtkToggleButton

GtkToggleButton — a button that retains its on/off state.

Synopsis

class GtkToggleButton GtkButton
{
    active;                // gboolean : Read / Write 
    draw_indicator;        // gboolean : Read / Write 
}
     

Parent Classes

GtkObject<-- GtkWidget<-- GtkContainer<-- GtkBin<-- GtkButton<--GtkToggleButton

Child Classes

GtkCheckButton

Methods

get_active ()
set_active (is_active)
set_mode (draw_indicator)
toggled ()

Related Functions

gtk_toggle_button_get_type () -- replaces GTK_TYPE_TOGGLE_BUTTON
gtk_toggle_button_new ()
gtk_toggle_button_new_with_label (label)

Example

See the Toggle Buttons example in the Example Code Appendix.