XtAppNextEvent 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]

XtAppNextEvent()					      XtAppNextEvent()

Name
  XtAppNextEvent  -  dispatch  timer and alternate input event and return
  the next X event.

Synopsis
  void XtAppNextEvent(app_context, event_return)
	 XtAppContext app_context;
	 XEvent *event_return;

Inputs
  app_context Specifies the application context.

Outputs
  event_return
	      Returns the dequeued event structure.

Description
  If there is an X event pending on any of the Displays	 in  app_context,
  XtAppNextEvent()  returns  that  event  in event_return.  Otherwise, it
  flushes the X output buffer of each Display, and if there  is	 a  back‐
  ground  work	procedure  registered (see XtAppAddWorkProc()), XtAppNex‐
  tEvent() calls it and starts over by checking for pending  events.   If
  there	 are  no  pending events and no work procedures, XtAppNextEvent()
  blocks while waiting for input  on  any  of  the  Display  connections,
  activity  on	any  of the alternate input sources registered with XtAp‐
  pAddInput(), or the expiration of any timers registered  with	 XtAppAd‐
  dTimeOut().

  If  there  is	 activity  on  an  alternate input source or if a timeout
  interval elapses, XtAppNextEvent() calls the callback that  was  regis‐
  tered	 with  the input source or with the timer.  If an X event occurs,
  XtAppNextEvent() removes that event from the queue and  returns  it  in
  event_return.

Usage
  Programs rarely need this much control over the event dispatching mech‐
  anism.  Most programs use XtAppMainLoop().  If you want  to  process	a
  single X, input, or timer event, consider XtAppProcessEvent().

See Also
  XtAppAddInput(1), XtAppAddTimeOut(1), XtAppAddWorkProc(1), XtAppMain‐
  Loop(1), XtAppPeekEvent(1), XtAppPending(1), XtAppProcessEvent(1),
  XtDispatchEvent(1).

Xt - Event Handling					      XtAppNextEvent()
[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