Index

Package: Foreach_User_Data (generic)

Description

generic
      type User_Data_Type (<>) is private;
      with procedure Destroy (Data : in out User_Data_Type) is null;
   package Foreach_User_Data is

Types

User_Data_Type

type User_Data_Type (<>) is private;

Gtk_Accel_Map_Foreach

type Gtk_Accel_Map_Foreach is access procedure
        (Data       : User_Data_Type;
         Accel_Path : UTF8_String;
         Accel_Key  : Gdk.Types.Gdk_Key_Type;
         Accel_Mods : Gdk.Types.Gdk_Modifier_Type;
         Changed    : Boolean);
"data": User data passed to Gtk.Accel_Map.Foreach or gtk_accel_map_foreach_unfiltered "accel_path": Accel path of the current accelerator "accel_key": Key of the current accelerator "accel_mods": Modifiers of the current accelerator "changed": Changed flag of the accelerator (if True, accelerator has changed during runtime and would need to be saved during an accelerator dump)

Subprograms & Entries

Destroy

procedure Destroy 
(Data: in out User_Data_Type) is null;

Foreach

procedure Foreach 
(Data: User_Data_Type;
Foreach_Func: Gtk_Accel_Map_Foreach);
Loops over the entries in the accelerator map whose accel path doesn't match any of the filters added with Gtk.Accel_Map.Add_Filter, and execute Foreach_Func on each. The signature of Foreach_Func is that of Gtk_Accel_Map_Foreach, the Changed parameter indicates whether this accelerator was changed during runtime (thus, would need saving during an accelerator map dump). "data": data to be passed into Foreach_Func "foreach_func": function to be executed for each accel map entry which is not filtered out