type Gaction_Map is new Glib.Types.GType_Interface;
type GAction_Entry_Array is array (Natural range <>) of GAction_Entry;
type Activate_Callback is access procedure (Action : access Glib.Simple_Action.Gsimple_Action; Parameter : Glib.Variant.Gvariant; Data : System.Address);
type Change_State_Callback is access procedure (Action : access Glib.Simple_Action.Gsimple_Action; Parameter : Glib.Variant.Gvariant; Data : System.Address);
Null_Gaction_Map : constant Gaction_Map;
function From_Object_Free
( | B | : access GAction_Entry) return GAction_Entry; |
function Get_Type return Glib.GType;
procedure Add_Action
( | Self | : Gaction_Map; |
Action | : Glib.Action.Gaction); |
procedure Add_Action_Entries
( | Self | : Gaction_Map; |
Entries | : GAction_Entry_Array; | |
User_Data | : System.Address := System.Null_Address); |
function Lookup_Action
( | Self | : Gaction_Map; |
Action_Name | : UTF8_String) return Glib.Action.Gaction; |
procedure Remove_Action
( | Self | : Gaction_Map; |
Action_Name | : UTF8_String); |
function Build
( | Name | : String; |
Activate | : Activate_Callback := null; | |
Parameter_Type | : String := ""; | |
State | : String := ""; | |
Change_State | : Change_State_Callback := null) return GAction_Entry; |
function "+"
( | W | : Gaction_Map) return Gaction_Map; |
The GActionMap interface is implemented by Glib.Action_Group.Gaction_Group implementations that operate by containing a number of named Glib.Action.Gaction instances, such as Glib.Simple_Action_Group.Gsimple_Action_Group.
One useful application of this interface is to map the names of actions from various action groups to unique, prefixed names (e.g. by prepending "app." or "win."). This is the motivation for the 'Map' part of the interface name.