Functions for handling events from the window system
gdkAddClientMessageFilter(message.type, func, data)
This section describes functions dealing with events from the window system.
In GTK+ applications the events are handled automatically in
gtkMainDoEvent and passed on to the appropriate widgets, so these
functions are rarely needed. Though some of the fields in the
Event Structures are useful.
Specifies the type of the event.
Do not confuse these events with the signals that GTK+ widgets emit. Although many of these events result in corresponding signals being emitted, the events are often transformed or filtered along the way.
a special code to indicate a null event.
the window manager has requested that the toplevel window be hidden or destroyed, usually when the user clicks on a special icon in the title bar.
the window has been destroyed.
all or part of the window has become visible and needs to be redrawn.
the pointer (usually a mouse) has moved.
a mouse button has been pressed.
a mouse button has been double-clicked (clicked twice
within a short period of time). Note that each click also generates a
a mouse button has been clicked 3 times in a short period
of time. Note that each click also generates a
a mouse button has been released.
a key has been pressed.
a key has been released.
the pointer has entered the window.
the pointer has left the window.
the keyboard focus has entered or left the window.
the size, position or stacking order of the window has changed.
Note that GTK+ discards these events for
the window has been mapped.
the window has been unmapped.
a property on the window has been changed or deleted.
the application has lost ownership of a selection.
another application has requested a selection.
a selection has been received.
an input device has moved into contact with a sensing surface (e.g. a touchscreen or graphics tablet).
an input device has moved out of contact with a sensing surface.
the mouse has entered the window while a drag is in progress.
the mouse has left the window while a drag is in progress.
the mouse has moved in the window while a drag is in progress.
the status of the drag operation initiated by the window has changed.
a drop operation onto the window has started.
the drop operation initiated by the window has completed.
a message has been received from another application.
the window visibility status has changed.
indicates that the source region was completely available when parts of a drawable were copied. This is not very useful.
the scroll wheel was turned
the state of a window has changed. See
for the possible window states
a setting has been modified.
the owner of a selection has changed. This event type was added in 2.6
a pointer or keyboard grab was broken. This event type was added in 2.8.
the content of the window has been changed. This event type was added in 2.14.
A set of bit-flags to indicate which events a window is to receive.
Most of these masks map onto one or more of the
GdkEventType event types
GDK_POINTER_MOTION_HINT_MASK is a special mask which is used to reduce the
GDK_MOTION_NOTIFY events received. Normally a
event is received each time the mouse moves. However, if the application
spends a lot of time processing the event (updating the display, for example),
it can lag behind the position of the mouse. When using
GDK_MOTION_NOTIFY events will be sent,
some of which are marked as a hint (the is_hint member is
To receive more motion events after a motion hint event, the application
needs to asks for more, by calling
receive expose events
receive all pointer motion events
see the explanation above
receive pointer motion events while any button is pressed
receive pointer motion events while 1 button is pressed
receive pointer motion events while 2 button is pressed
receive pointer motion events while 3 button is pressed
receive button press events
receive button release events
receive key press events
receive key release events
receive window enter events
receive window leave events
receive focus change events
receive events about window configuration change
receive property change events
receive visibility change events
receive proximity in events
receive proximity out events
receive events about window configuration changes of child windows
receive scroll events
the combination of all the above event masks.
Specifies the type of function passed to
gdkEventHandlerSet to handle
all GDK events.
GdkEvent to process.
user data set when the event handler was installed with
Derived by RGtkGen from GTK+ documentation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.