Function fltk::app::add_idle[][src]

pub fn add_idle<F: FnMut() + 'static>(cb: F)

Add an idle callback to run within the event loop. Calls to WidgetExt::redraw within the callback require an explicit sleep