fltk 0.6.0

Rust bindings for the FLTK GUI library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Calque example of the FLTK docs

use fltk::*;

fn callback() {
    println!("TICK");
    app::repeat_timeout(1.0, Box::new(callback));
}

fn main() {
    let app = app::App::default();
    let mut wind = window::Window::new(100, 100, 400, 300, "");
    wind.show();

    app::add_timeout(1.0, Box::new(callback));
    
    app.run().unwrap();
}