Function repeat_timeout3

pub fn repeat_timeout3(tm: f64, handle: *mut ())
Available on crate feature dep_fltk only.
Expand description

Repeats the timeout callback, associated with the hadle, from the expiration of the previous timeout. You may only call this method inside a timeout callback. The timeout duration tm is indicated in seconds Example:

use fltk::{prelude::*, *};
fn main() {
    let callback = |handle| {
        println!("TICK");
        app::repeat_timeout3(1.0, handle);
    };

    let app = app::App::default();
    let mut wind = window::Window::new(100, 100, 400, 300, "");
    wind.show();
    app::add_timeout3(1.0, callback);
    app.run().unwrap();
}