wita 0.1.1

A window library in Rust for Windows
Documentation

wita

A window library in Rust for Windows

Hello, world!

struct Application;

impl wita::EventHandler for Application {
    fn closed(&mut self, _: &wita::Window) {
        println!("closed");
    }
}

fn main() {
    let context = wita::Context::new();
    let _window = wita::WindowBuilder::new()
        .title("hello, world!")
        .build(&context);
    context.run(wita::RunType::Wait, Application);
}

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.