From 4dd096e7b52301663ddaa002984e10cb83d97b9a Mon Sep 17 00:00:00 2001 From: Bill Spitzak Date: Fri, 16 Jun 2000 07:28:03 +0000 Subject: Added has_timeout() and has_idle() calls as suggested by Eric Sven Ristad. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1214 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/functions.html | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'documentation/functions.html') diff --git a/documentation/functions.html b/documentation/functions.html index 4923f3d44..3a156c687 100644 --- a/documentation/functions.html +++ b/documentation/functions.html @@ -230,8 +230,10 @@ but Fl::ready() does not.

something that calls Fl::wait() or Fl::check() (such as a message pop-up) you should first remove the idle callback so that it does not recurse.

+

static void Fl::add_timeout(float t, void (*cb)(void *),void *v=0)

+ Add a one-shot timeout callback. The timeout will happen as soon as possible after t seconds after the last time wait() was called. The optional void * argument is passed to the @@ -657,9 +659,22 @@ while (!calculation_done()) {

static void Fl::redraw()

Redraws all widgets. + +

static int Fl::has_idle(void (*cb)(void *), +void *= 0)

+ +Returns true if the specified idle callback is currently installed. +

static void Fl::remove_idle(void (*cb)(void *), void *= 0)

- Removes the specified idle callback. + +Removes the specified idle callback, if it is installed. + +

static int Fl::has_timeout(void +(*cb)(void *), void *= 0)

+ +Returns true if the timeout exists and has not been called yet. +

static void Fl::remove_timeout(void (*cb)(void *), void *= 0)

Removes a timeout callback. It is harmless to remove a timeout -- cgit v1.2.3