GrCheckNextEvent()

Name

GrCheckNextEvent() -- Get an event from the queue

Synopsis

void GrCheckNextEvent ( GR_EVENT * ep );

Description

This function retrieves the next nano-X event from the event queue and returns the event in the caller supplied GR_EVENT structure. If the event queue is empty, the function will return immediately with an event type of GR_EVENT_TYPE_NONE.

Note

When this function is called all graphics commands queued for the server are flushed.

Parameters

TypeNameDescription
GR_EVENT*epPointer to the caller supplied structure that will receive the next event from the event queue.

See Also

GR_EVENT, GrSelectEvents(), GrGetNextEvent(), GrGetNextEventTimeout(), GrPeekEvent(), GrMainLoop().