peek_event


Description:

[ Version ( since = "2.2" ) ]
public Event? peek_event ()

Gets a copy of the first Event in the this’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.)

Parameters:

this

a Display

Returns:

a copy of the first Event on the event queue, or null if no events are in the queue. The returned Event should be freed with free.




2022 vala-language.org