A Gtk.Check_Button.Gtk_Check_Button places a discrete Gtk.Toggle_Button.Gtk_Toggle_Button next to a widget, (usually a Gtk.Label.Gtk_Label). See the section on Gtk.Toggle_Button.Gtk_Toggle_Button widgets for more information about toggle/check buttons.
The important signal ( Gtk.Toggle_Button.Gtk_Toggle_Button::toggled ) is also inherited from Gtk.Toggle_Button.Gtk_Toggle_Button.
# CSS nodes
checkbutton
âââ check
â°ââ <child>
A GtkCheckButton with indicator (see Gtk.Toggle_Button.Set_Mode) has a main CSS node with name checkbutton and a subnode with name check.
button.check
âââ check
â°ââ <child>
A GtkCheckButton without indicator changes the name of its main node to button and adds a .check style class to it. The subnode is invisible in this case.
<screenshot>gtk-check_button</screenshot> <group>Buttons and Toggles</group> <testgtk>create_check_buttons.adb</testgtk>
function "+"
(Widget : access Gtk_Check_Button_Record'Class)
return Gtk.Actionable.Gtk_Actionable
function "+"
(Widget : access Gtk_Check_Button_Record'Class)
return Gtk.Activatable.Gtk_Activatable
function "+"
(Widget : access Gtk_Check_Button_Record'Class)
return Gtk.Buildable.Gtk_Buildable
function "-"
(Interf : Gtk.Actionable.Gtk_Actionable)
return Gtk_Check_Button
function "-"
(Interf : Gtk.Activatable.Gtk_Activatable)
return Gtk_Check_Button
function "-"
(Interf : Gtk.Buildable.Gtk_Buildable)
return Gtk_Check_Button
procedure Do_Set_Related_Action
(Self : not null access Gtk_Check_Button_Record;
Action : not null access Gtk.Action.Gtk_Action_Record'Class)
function Get_Action_Name
(Self : not null access Gtk_Check_Button_Record) return UTF8_String
function Get_Action_Target_Value
(Self : not null access Gtk_Check_Button_Record)
return Glib.Variant.Gvariant
function Get_Related_Action
(Self : not null access Gtk_Check_Button_Record)
return Gtk.Action.Gtk_Action
function Get_Type return Glib.GType
function Get_Use_Action_Appearance
(Self : not null access Gtk_Check_Button_Record) return Boolean
type Gtk_Check_Button is access all Gtk_Check_Button_Record'Class;
function Gtk_Check_Button_New_With_Label
(Label : UTF8_String := "") return Gtk_Check_Button
Create a check button. if Label is null, then no widget is associated with the button, and any widget can be added to the button (with Gtk.Container.Add).
the text for the check button.
function Gtk_Check_Button_New_With_Mnemonic
(Label : UTF8_String) return Gtk_Check_Button
Creates a new Gtk.Check_Button.Gtk_Check_Button containing a label. The label will be created using Gtk.Label.Gtk_New_With_Mnemonic, so underscores in Label indicate the mnemonic for the check button.
The text of the button, with an underscore in front of the mnemonic character
type Gtk_Check_Button_Record is new Gtk_Toggle_Button_Record with null record;
procedure Gtk_New
(Check_Button : out Gtk_Check_Button;
Label : UTF8_String := "")
Create a check button. if Label is null, then no widget is associated with the button, and any widget can be added to the button (with Gtk.Container.Add). Initialize does nothing if the object was already created with another call to Initialize* or G_New.
the text for the check button.
procedure Gtk_New_With_Mnemonic
(Check_Button : out Gtk_Check_Button;
Label : UTF8_String)
Creates a new Gtk.Check_Button.Gtk_Check_Button containing a label. The label will be created using Gtk.Label.Gtk_New_With_Mnemonic, so underscores in Label indicate the mnemonic for the check button. Initialize_With_Mnemonic does nothing if the object was already created with another call to Initialize* or G_New.
The text of the button, with an underscore in front of the mnemonic character
package Implements_Gtk_Actionable is new Glib.Types.Implements
(Gtk.Actionable.Gtk_Actionable, Gtk_Check_Button_Record, Gtk_Check_Button);
package Implements_Gtk_Activatable is new Glib.Types.Implements
(Gtk.Activatable.Gtk_Activatable, Gtk_Check_Button_Record, Gtk_Check_Button);
package Implements_Gtk_Buildable is new Glib.Types.Implements
(Gtk.Buildable.Gtk_Buildable, Gtk_Check_Button_Record, Gtk_Check_Button);
procedure Initialize
(Check_Button : not null access Gtk_Check_Button_Record'Class;
Label : UTF8_String := "")
Create a check button. if Label is null, then no widget is associated with the button, and any widget can be added to the button (with Gtk.Container.Add). Initialize does nothing if the object was already created with another call to Initialize* or G_New.
the text for the check button.
procedure Initialize_With_Mnemonic
(Check_Button : not null access Gtk_Check_Button_Record'Class;
Label : UTF8_String)
Creates a new Gtk.Check_Button.Gtk_Check_Button containing a label. The label will be created using Gtk.Label.Gtk_New_With_Mnemonic, so underscores in Label indicate the mnemonic for the check button. Initialize_With_Mnemonic does nothing if the object was already created with another call to Initialize* or G_New.
The text of the button, with an underscore in front of the mnemonic character
procedure Set_Action_Name
(Self : not null access Gtk_Check_Button_Record;
Action_Name : UTF8_String := "")
procedure Set_Action_Target_Value
(Self : not null access Gtk_Check_Button_Record;
Target_Value : Glib.Variant.Gvariant)
procedure Set_Detailed_Action_Name
(Self : not null access Gtk_Check_Button_Record;
Detailed_Action_Name : UTF8_String)
procedure Set_Related_Action
(Self : not null access Gtk_Check_Button_Record;
Action : not null access Gtk.Action.Gtk_Action_Record'Class)
procedure Set_Use_Action_Appearance
(Self : not null access Gtk_Check_Button_Record;
Use_Appearance : Boolean)
procedure Sync_Action_Properties
(Self : not null access Gtk_Check_Button_Record;
Action : access Gtk.Action.Gtk_Action_Record'Class)