Function

GdkFilterFunc

Declaration

GdkFilterReturn
(* GdkFilterFunc) (
  GdkXEvent* xevent,
  GdkEvent* event,
  gpointer data
)

Description [src]

Specifies the type of function used to filter native events before they are converted to GDK events.

When a filter is called, event is unpopulated, except for event->window. The filter may translate the native event to a GDK event and store the result in event, or handle it without translation. If the filter translates the event and processing should continue, it should return GDK_FILTER_TRANSLATE.

Parameters

xevent GdkXEvent
 

The native event to filter.

 The data is owned by the caller of the function.
event GdkEvent
 

The GDK event to which the X event will be translated.

 The data is owned by the caller of the function.
data gpointer
 

User data set when the filter was installed.

 The argument can be NULL.
 The data is owned by the caller of the function.

Return value

Returns: GdkFilterReturn
 

A GdkFilterReturn value.