fltk 0.4.1

Rust bindings for the FLTK GUI library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use fltk::{app::*, frame::*, image::*, window::*};
use std::path::PathBuf;

fn main() {
    let app = App::default().set_scheme(AppScheme::Gleam);
    let mut wind = Window::new(100, 100, 400, 300, "Hello from rust");
    let mut frame = Frame::new(0, 0, 400, 300, "");
    let image = SvgImage::load(&PathBuf::from("screenshots/RustLogo.svg")).unwrap();
    frame.set_image(&image);
    wind.make_resizable(true);
    wind.end();
    wind.show();
    app.run().unwrap();
}