Gtk.Check_Button

Entities

Tagged Types

Access Types

Subprograms

Generic Instantiations

Description

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
Parameters
Widget
Return Value

"+"

function "+"
  (Widget : access Gtk_Check_Button_Record'Class)
return Gtk.Activatable.Gtk_Activatable
Parameters
Widget
Return Value

"+"

function "+"
  (Widget : access Gtk_Check_Button_Record'Class)
return Gtk.Buildable.Gtk_Buildable
Parameters
Widget
Return Value

"-"

function "-"
  (Interf : Gtk.Actionable.Gtk_Actionable)
return Gtk_Check_Button
Parameters
Interf
Return Value

"-"

function "-"
  (Interf : Gtk.Activatable.Gtk_Activatable)
return Gtk_Check_Button
Parameters
Interf
Return Value

"-"

function "-"
  (Interf : Gtk.Buildable.Gtk_Buildable)
return Gtk_Check_Button
Parameters
Interf
Return Value

Do_Set_Related_Action

procedure Do_Set_Related_Action
   (Self   : not null access Gtk_Check_Button_Record;
    Action : not null access Gtk.Action.Gtk_Action_Record'Class)
Parameters
Self
Action

Get_Action_Name

function Get_Action_Name
   (Self : not null access Gtk_Check_Button_Record) return UTF8_String
Parameters
Self
Return Value

Get_Action_Target_Value

function Get_Action_Target_Value
   (Self : not null access Gtk_Check_Button_Record)
    return Glib.Variant.Gvariant
Parameters
Self
Return Value

Get_Related_Action

function Get_Related_Action
   (Self : not null access Gtk_Check_Button_Record)
    return Gtk.Action.Gtk_Action
Parameters
Self
Return Value

Get_Type

function Get_Type return Glib.GType
Return Value

Get_Use_Action_Appearance

function Get_Use_Action_Appearance
   (Self : not null access Gtk_Check_Button_Record) return Boolean
Parameters
Self
Return Value

Gtk_Check_Button

type Gtk_Check_Button is access all Gtk_Check_Button_Record'Class;

Gtk_Check_Button_New_With_Label

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).

Parameters
Label

the text for the check button.

Return Value

Gtk_Check_Button_New_With_Mnemonic

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.

Parameters
Label

The text of the button, with an underscore in front of the mnemonic character

Return Value

Gtk_Check_Button_Record

type Gtk_Check_Button_Record is new Gtk_Toggle_Button_Record with null record;

Gtk_New

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.

Parameters
Check_Button
Label

the text for the check button.

Gtk_New_With_Mnemonic

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.

Parameters
Check_Button
Label

The text of the button, with an underscore in front of the mnemonic character

Implements_Gtk_Actionable

package Implements_Gtk_Actionable is new Glib.Types.Implements
  (Gtk.Actionable.Gtk_Actionable, Gtk_Check_Button_Record, Gtk_Check_Button);

Implements_Gtk_Activatable

package Implements_Gtk_Activatable is new Glib.Types.Implements
  (Gtk.Activatable.Gtk_Activatable, Gtk_Check_Button_Record, Gtk_Check_Button);

Implements_Gtk_Buildable

package Implements_Gtk_Buildable is new Glib.Types.Implements
  (Gtk.Buildable.Gtk_Buildable, Gtk_Check_Button_Record, Gtk_Check_Button);

Initialize

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.

Parameters
Check_Button
Label

the text for the check button.

Initialize_With_Mnemonic

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.

Parameters
Check_Button
Label

The text of the button, with an underscore in front of the mnemonic character

Set_Action_Name

procedure Set_Action_Name
   (Self        : not null access Gtk_Check_Button_Record;
    Action_Name : UTF8_String := "")
Parameters
Self
Action_Name

Set_Action_Target_Value

procedure Set_Action_Target_Value
   (Self         : not null access Gtk_Check_Button_Record;
    Target_Value : Glib.Variant.Gvariant)
Parameters
Self
Target_Value

Set_Detailed_Action_Name

procedure Set_Detailed_Action_Name
   (Self                 : not null access Gtk_Check_Button_Record;
    Detailed_Action_Name : UTF8_String)
Parameters
Self
Detailed_Action_Name

Set_Related_Action

procedure Set_Related_Action
   (Self   : not null access Gtk_Check_Button_Record;
    Action : not null access Gtk.Action.Gtk_Action_Record'Class)
Parameters
Self
Action

Set_Use_Action_Appearance

procedure Set_Use_Action_Appearance
   (Self           : not null access Gtk_Check_Button_Record;
    Use_Appearance : Boolean)
Parameters
Self
Use_Appearance

Sync_Action_Properties

procedure Sync_Action_Properties
   (Self   : not null access Gtk_Check_Button_Record;
    Action : access Gtk.Action.Gtk_Action_Record'Class)
Parameters
Self
Action