mkgraphic 0.2.1

A Rust port of the cycfi/elements GUI framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use mkgraphic::prelude::*;

fn main() {
    let mut app = App::new();
    let mut window = Window::new("Hello MKGraphic", Extent::new(800.0, 600.0));

    let content = vtile![
        label("Hello, World!"),
        button("Click me!").on_click(|| println!("Clicked!")),
    ];

    window.set_content(share(content));
    window.show();
    app.run();
}