Glib.Simple_Action_Group

Entities

Tagged Types

Access Types

Subprograms

Generic Instantiations

Description

Glib.Simple_Action_Group.Gsimple_Action_Group is a hash table filled with Glib.Action.Gaction objects, implementing the Glib.Action_Group.Gaction_Group and Glib.Action_Map.Gaction_Map interfaces.

"+"

function "+"
  (Widget : access Gsimple_Action_Group_Record'Class)
return Glib.Action_Group.Gaction_Group
Parameters
Widget
Return Value

"+"

function "+"
  (Widget : access Gsimple_Action_Group_Record'Class)
return Glib.Action_Map.Gaction_Map
Parameters
Widget
Return Value

"-"

function "-"
  (Interf : Glib.Action_Group.Gaction_Group)
return Gsimple_Action_Group
Parameters
Interf
Return Value

"-"

function "-"
  (Interf : Glib.Action_Map.Gaction_Map)
return Gsimple_Action_Group
Parameters
Interf
Return Value

Action_Added

procedure Action_Added
   (Self        : not null access Gsimple_Action_Group_Record;
    Action_Name : UTF8_String)
Parameters
Self
Action_Name

Action_Enabled_Changed

procedure Action_Enabled_Changed
   (Self        : not null access Gsimple_Action_Group_Record;
    Action_Name : UTF8_String;
    Enabled     : Boolean)
Parameters
Self
Action_Name
Enabled

Action_Removed

procedure Action_Removed
   (Self        : not null access Gsimple_Action_Group_Record;
    Action_Name : UTF8_String)
Parameters
Self
Action_Name

Action_State_Changed

procedure Action_State_Changed
   (Self        : not null access Gsimple_Action_Group_Record;
    Action_Name : UTF8_String;
    State       : Glib.Variant.Gvariant)
Parameters
Self
Action_Name
State

Activate_Action

procedure Activate_Action
   (Self        : not null access Gsimple_Action_Group_Record;
    Action_Name : UTF8_String;
    Parameter   : Glib.Variant.Gvariant)
Parameters
Self
Action_Name
Parameter

Add_Action

procedure Add_Action
   (Self   : not null access Gsimple_Action_Group_Record;
    Action : Glib.Action.Gaction)
Parameters
Self
Action

Add_Action_Entries

procedure Add_Action_Entries
   (Self      : not null access Gsimple_Action_Group_Record;
    Entries   : GAction_Entry_Array;
    User_Data : System.Address := System.Null_Address)
Parameters
Self
Entries
User_Data

Add_Entries

procedure Add_Entries
   (Self      : not null access Gsimple_Action_Group_Record;
    Entries   : Glib.Action_Map.GAction_Entry_Array;
    User_Data : System.Address := System.Null_Address)

A convenience function for creating multiple Glib.Simple_Action.Gsimple_Action instances and adding them to the action group. Since: gtk+ 2.30 Deprecated since 2.38, 1

Parameters
Self
Entries

a pointer to the first item in an array of Glib.Action_Map.GAction_Entry structs

User_Data

the user data for signal connections

Change_Action_State

procedure Change_Action_State
   (Self        : not null access Gsimple_Action_Group_Record;
    Action_Name : UTF8_String;
    Value       : Glib.Variant.Gvariant)
Parameters
Self
Action_Name
Value

G_New

procedure G_New (Self : out Gsimple_Action_Group)

Creates a new, empty, Glib.Simple_Action_Group.Gsimple_Action_Group. Since: gtk+ 2.28

Parameters
Self

Get_Action_Enabled

function Get_Action_Enabled
   (Self        : not null access Gsimple_Action_Group_Record;
    Action_Name : UTF8_String) return Boolean
Parameters
Self
Action_Name
Return Value

Get_Action_Parameter_Type

function Get_Action_Parameter_Type
   (Self        : not null access Gsimple_Action_Group_Record;
    Action_Name : UTF8_String) return Glib.Variant.Gvariant_Type
Parameters
Self
Action_Name
Return Value

Get_Action_State

function Get_Action_State
   (Self        : not null access Gsimple_Action_Group_Record;
    Action_Name : UTF8_String) return Glib.Variant.Gvariant
Parameters
Self
Action_Name
Return Value

Get_Action_State_Hint

function Get_Action_State_Hint
   (Self        : not null access Gsimple_Action_Group_Record;
    Action_Name : UTF8_String) return Glib.Variant.Gvariant
Parameters
Self
Action_Name
Return Value

Get_Action_State_Type

function Get_Action_State_Type
   (Self        : not null access Gsimple_Action_Group_Record;
    Action_Name : UTF8_String) return Glib.Variant.Gvariant_Type
Parameters
Self
Action_Name
Return Value

Get_Type

function Get_Type return Glib.GType
Return Value

Gsimple_Action_Group

type Gsimple_Action_Group is access all Gsimple_Action_Group_Record'Class;

Gsimple_Action_Group_New

function Gsimple_Action_Group_New return Gsimple_Action_Group

Creates a new, empty, Glib.Simple_Action_Group.Gsimple_Action_Group. Since: gtk+ 2.28

Return Value

Gsimple_Action_Group_Record

type Gsimple_Action_Group_Record is new GObject_Record with null record;

Has_Action

function Has_Action
   (Self        : not null access Gsimple_Action_Group_Record;
    Action_Name : UTF8_String) return Boolean
Parameters
Self
Action_Name
Return Value

Implements_Gaction_Group

package Implements_Gaction_Group is new Glib.Types.Implements
  (Glib.Action_Group.Gaction_Group, Gsimple_Action_Group_Record, Gsimple_Action_Group);

Implements_Gaction_Map

package Implements_Gaction_Map is new Glib.Types.Implements
  (Glib.Action_Map.Gaction_Map, Gsimple_Action_Group_Record, Gsimple_Action_Group);

Initialize

procedure Initialize
   (Self : not null access Gsimple_Action_Group_Record'Class)

Creates a new, empty, Glib.Simple_Action_Group.Gsimple_Action_Group. Since: gtk+ 2.28 Initialize does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Self

Insert

procedure Insert
   (Self   : not null access Gsimple_Action_Group_Record;
    Action : Glib.Action.Gaction)

Adds an action to the action group. If the action group already contains an action with the same name as Action then the old action is dropped from the group. The action group takes its own reference on Action. Since: gtk+ 2.28 Deprecated since 2.38, 1

Parameters
Self
Action

a Glib.Action.Gaction

List_Actions

function List_Actions
   (Self : not null access Gsimple_Action_Group_Record)
    return GNAT.Strings.String_List
Parameters
Self
Return Value

Lookup

function Lookup
   (Self        : not null access Gsimple_Action_Group_Record;
    Action_Name : UTF8_String) return Glib.Action.Gaction

Looks up the action with the name Action_Name in the group. If no such action exists, returns null. Since: gtk+ 2.28 Deprecated since 2.38, 1

Parameters
Self
Action_Name

the name of an action

Return Value

a Glib.Action.Gaction, or null

Lookup_Action

function Lookup_Action
   (Self        : not null access Gsimple_Action_Group_Record;
    Action_Name : UTF8_String) return Glib.Action.Gaction
Parameters
Self
Action_Name
Return Value

Query_Action

function Query_Action
   (Self           : not null access Gsimple_Action_Group_Record;
    Action_Name    : UTF8_String;
    Enabled        : access Boolean;
    Parameter_Type : access Glib.Variant.Gvariant_Type;
    State_Type     : access Glib.Variant.Gvariant_Type;
    State_Hint     : access Glib.Variant.Gvariant;
    State          : access Glib.Variant.Gvariant) return Boolean
Parameters
Self
Action_Name
Enabled
Parameter_Type
State_Type
State_Hint
State
Return Value

Remove

procedure Remove
   (Self        : not null access Gsimple_Action_Group_Record;
    Action_Name : UTF8_String)

Removes the named action from the action group. If no action of this name is in the group then nothing happens. Since: gtk+ 2.28 Deprecated since 2.38, 1

Parameters
Self
Action_Name

the name of the action

Remove_Action

procedure Remove_Action
   (Self        : not null access Gsimple_Action_Group_Record;
    Action_Name : UTF8_String)
Parameters
Self
Action_Name