package Implements_Activatable is new Glib.Types.Implements (Gtk.Activatable.Gtk_Activatable, Gtk_Toggle_Button_Record, Gtk_Toggle_Button);
package Implements_Buildable is new Glib.Types.Implements (Gtk.Buildable.Gtk_Buildable, Gtk_Toggle_Button_Record, Gtk_Toggle_Button);
type Gtk_Toggle_Button_Record is new Gtk_Button_Record with null record;
type Gtk_Toggle_Button is access all Gtk_Toggle_Button_Record'Class;
Active_Property : constant Glib.Properties.Property_Boolean;
Draw_Indicator_Property : constant Glib.Properties.Property_Boolean;
Inconsistent_Property : constant Glib.Properties.Property_Boolean;
Signal_Toggled : constant Glib.Signal_Name := "toggled";
procedure Gtk_New
( | Toggle_Button | : out Gtk_Toggle_Button; |
Label | : UTF8_String := ""); |
procedure Initialize
( | Toggle_Button | : access Gtk_Toggle_Button_Record'Class; |
Label | : UTF8_String := ""); |
procedure Gtk_New_With_Mnemonic
( | Toggle_Button | : out Gtk_Toggle_Button; |
Label | : UTF8_String); |
procedure Initialize_With_Mnemonic
( | Toggle_Button | : access Gtk_Toggle_Button_Record'Class; |
Label | : UTF8_String); |
function Get_Type return Glib.GType;
function Get_Active
( | Toggle_Button | : access Gtk_Toggle_Button_Record) return Boolean; |
procedure Set_Active
( | Toggle_Button | : access Gtk_Toggle_Button_Record; |
Is_Active | : Boolean); |
function Get_Inconsistent
( | Toggle_Button | : access Gtk_Toggle_Button_Record) return Boolean; |
procedure Set_Inconsistent
( | Toggle_Button | : access Gtk_Toggle_Button_Record; |
Setting | : Boolean := True); |
function Get_Mode
( | Toggle_Button | : access Gtk_Toggle_Button_Record) return Boolean; |
procedure Set_Mode
( | Toggle_Button | : access Gtk_Toggle_Button_Record; |
Draw_Indicator | : Boolean); |
procedure Toggled
( | Toggle_Button | : access Gtk_Toggle_Button_Record); |
procedure Do_Set_Related_Action
( | Self | : access Gtk_Toggle_Button_Record; |
Action | : access Gtk.Action.Gtk_Action_Record'Class); |
function Get_Related_Action
( | Self | : access Gtk_Toggle_Button_Record) return Gtk.Action.Gtk_Action; |
procedure Set_Related_Action
( | Self | : access Gtk_Toggle_Button_Record; |
Action | : access Gtk.Action.Gtk_Action_Record'Class); |
function Get_Use_Action_Appearance
( | Self | : access Gtk_Toggle_Button_Record) return Boolean; |
procedure Set_Use_Action_Appearance
( | Self | : access Gtk_Toggle_Button_Record; |
Use_Appearance | : Boolean); |
procedure Sync_Action_Properties
( | Self | : access Gtk_Toggle_Button_Record; |
Action | : access Gtk.Action.Gtk_Action_Record'Class); |
function "+"
( | Widget | : access Gtk_Toggle_Button_Record'Class) return Gtk.Activatable.Gtk_Activatable renames Implements_Activatable.To_Interface; |
function "-"
( | Interf | : Gtk.Activatable.Gtk_Activatable) return Gtk_Toggle_Button renames Implements_Activatable.To_Object; |
function "+"
( | Widget | : access Gtk_Toggle_Button_Record'Class) return Gtk.Buildable.Gtk_Buildable renames Implements_Buildable.To_Interface; |
function "-"
( | Interf | : Gtk.Buildable.Gtk_Buildable) return Gtk_Toggle_Button renames Implements_Buildable.To_Object; |
A Gtk_Toggle_Button is like a regular button, but can be in one of two states, "active" or "inactive". Its visual aspect is modified when the state is changed.
You should consider using a Gtk_Check_Button instead, since it looks nicer and provides more visual clues that the button can be toggled.