Index

Package: Handler_Set_User_Data (generic)

Description

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

Types

User_Data_Type

type User_Data_Type (<>) is private;

Gdk_Event_Func

type Gdk_Event_Func is access procedure (Event : Gdk.Event.Gdk_Event; Data : User_Data_Type);
Specifies the type of function passed to Gdk.Event.Handler_Set to handle all GDK events. "event": the Gdk.Event.Gdk_Event to process. "data": user data set when the event handler was installed with Gdk.Event.Handler_Set.

Subprograms & Entries

Destroy

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

Handler_Set

procedure Handler_Set 
(Func: Gdk_Event_Func;
Data: User_Data_Type;
Notify: Glib.G_Destroy_Notify_Address);
Sets the function to call to handle all events from GDK. Note that GTK+ uses this to install its own event handler, so it is usually not useful for GTK+ applications. (Although an application can call this function then call Gtk.Main.Main_Do_Event to pass events to GTK+.) "func": the function to call to handle events from GDK. "data": user data to pass to the function. "notify": the function to call when the handler function is removed, i.e. when Gdk.Event.Handler_Set is called with another event handler.