Extracted from Pike v8.0 release 276 as of 2016-07-30.
   

Class GTK2.ToggleButton

Inheritance graph
GTK2.Activatable GTK2.G.Object GTK2.G.InitiallyUnowned GTK2.Object GTK2.Widget GTK2.Container GTK2.Bin GTK2.Button GTK2.ToggleButton GTK2.CheckButton
Description

Toggle buttons are derived from normal buttons and are very similar, except they will always be in one of two states, alternated by a click. They may be depressed, and when you click again, they will pop back up. Click again, and they will pop back down.

 GTK2.ToggleButton("Toggle button")

 GTK2.ToggleButton("Toggle button")->set_active( 1 )

Properties: int active int draw-indicator int inconsistent

Signals: toggled


Inherit Button

inherit GTK2.Button : Button


Method create

GTK2.ToggleButton GTK2.ToggleButton(string|mapping label_or_props, int|void mnemonic)

Description

If you supply a string, a label will be created and inserted in the button. Otherwise, use ->add(widget) to create the contents of the button.