addIdle
fn
void addIdle(TimeoutCallback callback)Adds an idle callback.
Idle callbacks are invoked whenever FLTK has no other events to process. They are useful for background tasks that should run when the application is not busy handling user input.
Warning: Idle callbacks can significantly impact performance if they do heavy processing. Consider using timeouts for periodic tasks.
Parameters
callback | Function to call when idle Example: |