Gtk.Radio_Tool_Button

Entities

Tagged Types

Access Types

Constants

Subprograms

Generic Instantiations

Description

A Gtk.Radio_Tool_Button.Gtk_Radio_Tool_Button is a Gtk.Tool_Item.Gtk_Tool_Item that contains a radio button, that is, a button that is part of a group of toggle buttons where only one button can be active at a time.

Use Gtk.Radio_Tool_Button.Gtk_New to create a new GtkRadioToolButton. Use gtk_radio_tool_button_new_from_widget to create a new GtkRadioToolButton that is part of the same group as an existing GtkRadioToolButton.

# CSS nodes

GtkRadioToolButton has a single CSS node with name toolbutton.

"+"

function "+"
  (Widget : access Gtk_Radio_Tool_Button_Record'Class)
return Gtk.Actionable.Gtk_Actionable
Parameters
Widget
Return Value

"+"

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

"+"

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

"-"

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

"-"

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

"-"

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

Do_Set_Related_Action

procedure Do_Set_Related_Action
   (Self   : not null access Gtk_Radio_Tool_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_Radio_Tool_Button_Record)
    return UTF8_String
Parameters
Self
Return Value

Get_Action_Target_Value

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

Get_Group

function Get_Group
   (Self : not null access Gtk_Radio_Tool_Button_Record)
    return Gtk.Widget.Widget_SList.GSlist

Returns the radio button group Button belongs to. Since: gtk+ 2.4

Parameters
Self
Return Value

Get_Related_Action

function Get_Related_Action
   (Self : not null access Gtk_Radio_Tool_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_Radio_Tool_Button_Record) return Boolean
Parameters
Self
Return Value

Group_Property

Group_Property : constant Glib.Properties.Property_Object;

Type: Gtk_Radio_Tool_Button Flags: write Sets a new group for a radio tool button.

Gtk_New

procedure Gtk_New
   (Self  : out Gtk_Radio_Tool_Button;
    Group : Gtk.Widget.Widget_SList.GSlist)

Creates a new Gtk.Radio_Tool_Button.Gtk_Radio_Tool_Button, adding it to Group. Since: gtk+ 2.4 Initialize does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Self
Group

An existing radio button group, or null if you are creating a new group

Gtk_New_From_Stock

procedure Gtk_New_From_Stock
   (Self     : out Gtk_Radio_Tool_Button;
    Group    : Gtk.Widget.Widget_SList.GSlist;
    Stock_Id : UTF8_String)

Creates a new Gtk.Radio_Tool_Button.Gtk_Radio_Tool_Button, adding it to Group. The new Gtk.Radio_Tool_Button.Gtk_Radio_Tool_Button will contain an icon and label from the stock item indicated by Stock_Id. Since: gtk+ 2.4 Initialize_From_Stock does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Self
Group

an existing radio button group, or null if you are creating a new group

Stock_Id

the name of a stock item

Gtk_Radio_Tool_Button

type Gtk_Radio_Tool_Button is access all Gtk_Radio_Tool_Button_Record'Class;

Gtk_Radio_Tool_Button_New

function Gtk_Radio_Tool_Button_New
   (Group : Gtk.Widget.Widget_SList.GSlist) return Gtk_Radio_Tool_Button

Creates a new Gtk.Radio_Tool_Button.Gtk_Radio_Tool_Button, adding it to Group. Since: gtk+ 2.4

Parameters
Group

An existing radio button group, or null if you are creating a new group

Return Value

Gtk_Radio_Tool_Button_New_From_Stock

function Gtk_Radio_Tool_Button_New_From_Stock
   (Group    : Gtk.Widget.Widget_SList.GSlist;
    Stock_Id : UTF8_String) return Gtk_Radio_Tool_Button

Creates a new Gtk.Radio_Tool_Button.Gtk_Radio_Tool_Button, adding it to Group. The new Gtk.Radio_Tool_Button.Gtk_Radio_Tool_Button will contain an icon and label from the stock item indicated by Stock_Id. Since: gtk+ 2.4

Parameters
Group

an existing radio button group, or null if you are creating a new group

Stock_Id

the name of a stock item

Return Value

Gtk_Radio_Tool_Button_Record

type Gtk_Radio_Tool_Button_Record is new Gtk_Toggle_Tool_Button_Record with null record;

Implements_Gtk_Actionable

package Implements_Gtk_Actionable is new Glib.Types.Implements
  (Gtk.Actionable.Gtk_Actionable, Gtk_Radio_Tool_Button_Record, Gtk_Radio_Tool_Button);

Implements_Gtk_Activatable

package Implements_Gtk_Activatable is new Glib.Types.Implements
  (Gtk.Activatable.Gtk_Activatable, Gtk_Radio_Tool_Button_Record, Gtk_Radio_Tool_Button);

Implements_Gtk_Buildable

package Implements_Gtk_Buildable is new Glib.Types.Implements
  (Gtk.Buildable.Gtk_Buildable, Gtk_Radio_Tool_Button_Record, Gtk_Radio_Tool_Button);

Initialize

procedure Initialize
   (Self  : not null access Gtk_Radio_Tool_Button_Record'Class;
    Group : Gtk.Widget.Widget_SList.GSlist)

Creates a new Gtk.Radio_Tool_Button.Gtk_Radio_Tool_Button, adding it to Group. Since: gtk+ 2.4 Initialize does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Self
Group

An existing radio button group, or null if you are creating a new group

Initialize_From_Stock

procedure Initialize_From_Stock
   (Self     : not null access Gtk_Radio_Tool_Button_Record'Class;
    Group    : Gtk.Widget.Widget_SList.GSlist;
    Stock_Id : UTF8_String)

Creates a new Gtk.Radio_Tool_Button.Gtk_Radio_Tool_Button, adding it to Group. The new Gtk.Radio_Tool_Button.Gtk_Radio_Tool_Button will contain an icon and label from the stock item indicated by Stock_Id. Since: gtk+ 2.4 Initialize_From_Stock does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Self
Group

an existing radio button group, or null if you are creating a new group

Stock_Id

the name of a stock item

Set_Action_Name

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

Set_Action_Target_Value

procedure Set_Action_Target_Value
   (Self         : not null access Gtk_Radio_Tool_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_Radio_Tool_Button_Record;
    Detailed_Action_Name : UTF8_String)
Parameters
Self
Detailed_Action_Name

Set_Group

procedure Set_Group
   (Self  : not null access Gtk_Radio_Tool_Button_Record;
    Group : Gtk.Widget.Widget_SList.GSlist)

Adds Button to Group, removing it from the group it belonged to before. Since: gtk+ 2.4

Parameters
Self
Group

an existing radio button group, or null

Set_Related_Action

procedure Set_Related_Action
   (Self   : not null access Gtk_Radio_Tool_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_Radio_Tool_Button_Record;
    Use_Appearance : Boolean)
Parameters
Self
Use_Appearance

Sync_Action_Properties

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