Method

GdkDisplayget_event

since: 2.2

Declaration [src]

GdkEvent*
gdk_display_get_event (
  GdkDisplay* display
)

Description [src]

Gets the next GdkEvent to be processed for display, fetching events from the windowing system if necessary.

Available since: 2.2

Return value

Type: GdkEvent

The next GdkEvent to be processed, or NULL if no events are pending. 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.