fltk::app
pub fn awake_callback<F: FnMut() + 'static>(cb: F)
Registers a function that will be called by the main thread during the next message handling cycle