Running FL

After FL is "initialized" by calling show() on some window, you get Fl to wait for and respond to events by calling the following methods.

The Unix version of FL calls the Unix-specific object Fl_Poll in order to implement these methods. This object provides a interface to the Unix select() or poll() call. You may find this object useful even if you don't use FL.

void 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, short events, void (*cb)(int, void*), void* = 0);
void Fl::remove_fd(int);

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

void Fl::flush()

int Fl::damage()

Fl_Object *Fl::readqueue();

void Fl::mouse_position(int &,int &)

(back to contents)