Gdk.Event.Handler_Set_User_Data

Entities

Generic formal parameters

Access Types

Subprograms

Description

Destroy

procedure Destroy (Data : in out User_Data_Type)
Parameters
Data

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.

Parameters
Event

the Gdk.Event.Gdk_Event to process.

Data

user data set when the event handler was installed with Gdk.Event.Handler_Set.

Handler_Set

procedure Handler_Set (Func : Gdk_Event_Func; Data : User_Data_Type)

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

Parameters
Func

the function to call to handle events from GDK.

Data

user data to pass to the function.

User_Data_Type

type User_Data_Type (<>) is private;