Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XCheckIfEve(3x) — HP-UX 9.10

Media Vault

Software Library

Restoration Projects

Artifacts Sought

 

NAME

XCheckIfEvent − check the event queue for a matching event; don’t wait. 

Synopsis

Bool XCheckIfEvent(display, event_return, predicate, arg)
Display *display;
XEvent *event_return;
Bool (*predicate)();
char *arg;

Arguments

displaySpecifies a connection to an X server; returned from XOpenDisplay(). 

event_return
Returns the matched event structure.

predicateSpecifies the procedure that is called to determine if the next event in the queue matches your criteria. 

argSpecifies the user-specified argument that will be passed to the predicate procedure. 

Description

XCheckIfEvent() returns the next event in the queue that is matched by the specified predicate procedure.  If found, that event is removed from the queue, its structure is copied into the client-supplied XEvent, and True is returned.  If no match is found, XCheckIfEvent() returns False and flushes the request buffer.  No other events are removed from the queue.  Later events in the queue are not searched.  The predicate procedure is called with the arguments display, event, and arg.  For more information, see Volume One, Chapter 8, Events. 

See Also

QLength(), XAllowEvents(), XCheckMaskEvent(), XCheckTypedEvent(), XCheckTypedWindowEvent(), XCheckWindowEvent(), XEventsQueued(), XGetInputFocus(), XGetMotionEvents(), XIfEvent(), XMaskEvent(), XNextEvent(), XPeekEvent(), XPeekIfEvent(), XPending(), XPutBackEvent(), XSelectInput(), XSendEvent(), XSetInputFocus(), XSynchronize(), XWindowEvent. 

Copyright O’Reilly & Assoc.  —  

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026