Running Fltk

After fltk is "initialized" by calling show() on some window, you get fltk to wait for and respond to events by calling the following methods. On Unix fltk works by doing a select() call, with one of the file descriptors being the X display. These methods allow you to add other file descriptors, and make the select() call return after a timeout.

int Fl::run()

int Fl::wait()

float Fl::wait(float time)

float Fl::reset();

int Fl::check()

int Fl::ready();

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

void Fl::add_fd(int fd, void (*cb)(int, void*), void* = 0);
void Fl::add_fd(int fd, int when, void (*cb)(int, void*), void* = 0);
void Fl::remove_fd(int);

void Fl::add_test(int (*test)(void*), void (*cb)(void*), void* v=0);

void Fl::remove_test(int (*test)(void*), void (*cb)(void*), void* v=0);

void Fl::set_idle(void (*cb)());

void Fl::flush()

int Fl::damage()

Fl_Widget *Fl::readqueue();

(back to contents)