Function add_idle3

pub fn add_idle3<F>(cb: F) -> *mut ()
where F: FnMut(*mut ()) + 'static,
Available on crate feature dep_fltk only.
Expand description

Add an idle callback to run within the event loop. This function returns a handle that can be used for future interaction with the callback. Calls to WidgetExt::redraw within the callback require an explicit sleep