18#ifndef _src_Fl_Timeout_h_
19#define _src_Fl_Timeout_h_
23#define FL_TIMEOUT_DEBUG 0
125 static void debug(
int level = 1);
The internal class Fl_Timeout handles all timeout related functions.
Definition Fl_Timeout.h:56
static void repeat_timeout(double time, Fl_Timeout_Handler cb, void *data)
Repeats a timeout callback from the expiration of the previous timeout, allowing for more accurate ti...
Definition Fl_Timeout.cxx:264
static Fl_Timeout * free_timeout
List of free timeouts after use.
Definition Fl_Timeout.h:147
static int has_timeout(Fl_Timeout_Handler cb, void *data)
Returns true if the timeout exists and has not been called yet.
Definition Fl_Timeout.cxx:219
static void remove_timeout(Fl_Timeout_Handler cb, void *data)
Remove a timeout callback.
Definition Fl_Timeout.cxx:291
static void do_timeouts()
Elapse timers and call their callbacks if any timers are expired.
Definition Fl_Timeout.cxx:515
static Fl_Timeout * current()
Returns the first (top-most) timeout from the current timeout stack.
Definition Fl_Timeout.cxx:416
void make_current()
Remove the timeout from the active timer queue and push it onto the stack of currently running callba...
Definition Fl_Timeout.cxx:356
void insert()
Insert this timer entry into the active timer queue.
Definition Fl_Timeout.cxx:194
static Fl_Timeout * first_timeout
List of active timeouts.
Definition Fl_Timeout.h:141
static void elapse_timeouts()
Elapse all timers w/o calling their callbacks.
Definition Fl_Timeout.cxx:492
double delay()
Get the timer's delay in seconds.
Definition Fl_Timeout.h:93
static int remove_next_timeout(Fl_Timeout_Handler cb, void *data=NULL, void **data_return=NULL)
Remove the next matching timeout callback and return its data pointer.
Definition Fl_Timeout.cxx:324
static double time_to_wait(double ttw)
Returns the delay in seconds until the next timer expires, limited by ttw.
Definition Fl_Timeout.cxx:571
void release()
Remove the top-most timeout from the stack of currently running timeout callbacks and insert it into ...
Definition Fl_Timeout.cxx:385
static Fl_Timeout * current_timeout
The list of current timeouts is used to store the timeout whose callback is called while the callback...
Definition Fl_Timeout.h:165
void delay(double t)
Set the timer's delay in seconds.
Definition Fl_Timeout.h:98
static void add_timeout(double time, Fl_Timeout_Handler cb, void *data)
Adds a one-shot timeout callback.
Definition Fl_Timeout.cxx:243
static Fl_Timeout * get(double time, Fl_Timeout_Handler cb, void *data)
Get an Fl_Timeout instance for further handling.
Definition Fl_Timeout.cxx:460
void(* Fl_Timeout_Handler)(void *data)
Signature of timeout callback functions passed as parameters.
Definition Fl.H:97