Function
GdkEventpeek
Declaration [src]
GdkEvent*
gdk_event_peek (
void
)
Description [src]
If there is an event waiting in the event queue of some open display, returns a copy of it. See gdk_display_peek_event().
Return value
Type: GdkEvent
A copy of the first GdkEvent
on some event
queue, or NULL
if no events are in any queues. The returned
GdkEvent
should be freed with gdk_event_free().
The caller of the function takes ownership of the data, and is responsible for freeing it. |
The return value can be NULL . |