Method

GdkDisplaypeek_event

since: 2.2

Declaration [src]

GdkEvent*
gdk_display_peek_event (
  GdkDisplay* display
)

Description [src]

Gets a copy of the first GdkEvent in the display’s event queue, without removing the event from the queue. (Note that this function will not get more events from the windowing system. It only checks the events that have already been moved to the GDK event queue.)

Available since: 2.2

Return value

Type: GdkEvent

A copy of the first GdkEvent on the event queue, or NULL if no events are in the queue. The returned GdkEvent should be freed with gdk_event_free().

The caller of the method takes ownership of the returned data, and is responsible for freeing it.
The return value can be NULL.