XCheckIfEvent man page on HP-UX

Man page or keyword search:  
man Server   10987 pages
apropos Keyword Search (all sections)
Output format
HP-UX logo
[printable version]

XCheckIfEvent()						       XCheckIfEvent()

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
  display   Specifies	a  connection  to  an  X  server;  returned  from
	    XOpenDisplay().

  event_return
	    Returns the matched event structure.

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

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

Returns
  True if a matching event is found, else False.

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
  XQLength(),  XAllowEvents(),	 XCheckMaskEvent(),   XCheckTypedEvent(),
  XCheckTypedWindowEvent(),  XCheckWindowEvent(),  XEventsQueued(), XGet‐
  InputFocus(),	 XGetMotionEvents(),  XIfEvent(),   XMaskEvent(),   XNex‐
  tEvent(),  XPeekEvent(),  XPeekIfEvent(),  XPending(), XPutBackEvent(),
  XSelectInput(), XSendEvent(), XSetInputFocus(),  XSynchronize(),  XWin‐
  dowEvent().

Xlib - Input Handling					       XCheckIfEvent()
[top]

List of man pages available for HP-UX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net