Method
GdkWindowadd_filter
Declaration [src]
void
gdk_window_add_filter (
GdkWindow* window,
GdkFilterFunc function,
gpointer data
)
Description [src]
Adds an event filter to window
, allowing you to intercept events
before they reach GDK. This is a low-level operation and makes it
easy to break GDK and/or GTK+, so you have to know what you’re
doing. Pass NULL
for window
to get all events for all windows,
instead of events for a specific window.
If you are interested in X GenericEvents, bear in mind that
XGetEventData() has been already called on the event, and
XFreeEventData() must not be called within function
.
This method is not directly available to language bindings.
Parameters
window
-
Type:
GdkWindow
A
GdkWindow
.The argument can be NULL
. function
-
Type:
GdkFilterFunc
Filter callback.
data
-
Type:
gpointer
Data to pass to filter callback.
The argument can be NULL
.The data is owned by the caller of the method.