Gtk.Accel_Map.Foreach_User_Data

Entities

Generic formal parameters

Access Types

Subprograms

Description

Destroy

procedure Destroy (Data : in out User_Data_Type)
Parameters
Data

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

Parameters
Data

data to be passed into Foreach_Func

Foreach_Func

function to be executed for each accel map entry which is not filtered out

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);
Parameters
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)

User_Data_Type

type User_Data_Type (<>) is private;