vendor/fltk-sys/cfltk/fltk/src/Fl.cxx
/**
  Waits until "something happens" and then returns.  Call this
  repeatedly to "run" your program.  You can also check what happened
  each time after this returns, which is quite useful for managing
  program state.

  What this really does is call all idle callbacks, all elapsed
  timeouts, call Fl::flush() to get the screen to update, and
  then wait some time (zero if there are idle callbacks, the shortest of
  all pending timeouts, or infinity), for any events from the user or
  any Fl::add_fd() callbacks.  It then handles the events and
  calls the callbacks and then returns.

  \return non-zero if there are any
  visible windows - this may change in future versions of FLTK.
*/
Waits until "something happens" and then returns.  Call this
repeatedly to "run" your program.  You can also check what happened
each time after this returns, which is quite useful for managing
program state.



\return non-zero if there are any
visible windows - this may change in future versions of FLTK.
Waits until " something happens " and then returns . Call this repeatedly to " run " your program . You can also check what happened each time after this returns which is quite useful for managing program state . \ return non - zero if there are any visible windows - this may change in future versions of FLTK .
int Fl::wait() {
  if (!Fl_X::first) return 0;
  wait(FOREVER);
  return Fl_X::first != 0; 
}
int Fl :: wait ( ) { if ( ! Fl_X :: first ) return 0 ; wait ( FOREVER ) ; return Fl_X :: first != 0 ; }
Waits until "something happens" and then returns.
Waits until " something happens " and then returns .
// return true if there is a window