Frees a #GdkEvent, freeing or decrementing any resources associated with it. Note that this function should only be called with events returned from functions such as gdk_event_peek(), gdk_event_get(), gdk_event_get_graphics_expose() and gdk_event_copy() and gdk_event_new().
Extract the event window relative x/y coordinates from an event.
Extract the root window relative x/y coordinates from an event.
If the event contains a "state" field, puts that field in state
. Otherwise
stores an empty state (0). Returns %TRUE if there was a state field
in the event. event
may be %NULL, in which case it's treated
as if the event had no state field.
Returns the time stamp from event,
if there is one; otherwise
returns #GDK_CURRENT_TIME. If event
is %NULL, returns #GDK_CURRENT_TIME.
Appends a copy of the given event onto the front of the event queue for event->any.window's display, or the default event queue if event->any.window is %NULL. See gdk_display_put_event().
Sends an X ClientMessage event to a given window (which must be on the default #GdkDisplay.) This could be used for communicating between different applications, though the amount of data is limited to 20 bytes.
the window to send the X ClientMessage event to.
Sends an X ClientMessage event to all toplevel windows on the default #GdkScreen.
Toplevel windows are determined by checking for the WM_STATE property, as described in the Inter-Client Communication Conventions Manual (ICCCM). If no windows are found with the WM_STATE property set, the message is sent to all children of the root window.
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_do_event() to pass events to GTK+.)
Request more motion notifies if event
is a motion notify hint event.
This function should be used instead of gdk_window_get_pointer() to
request further motion notifies, because it also works for extension
events where motion notifies are provided for devices other than the
core pointer. Coordinate extraction, processing and requesting more
motion events from a %GDK_MOTION_NOTIFY event usually works like this:
|[ { /* motion_event handler */ x = motion_event->x; y = motion_event->y; /* handle (x,y) motion */ gdk_event_request_motions (motion_event); /* handles is_hint events */ }
@param event a valid #GdkEvent
Creates a new event of the given type. All fields are set to 0.