Display.getEvent

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

class Display
getEvent
()

Return Value

Type: gdk.event.Event

the next #GdkEvent to be processed, or null if no events are pending. The returned #GdkEvent should be freed with gdk.event.Event.free.