#windows

wita

A window library in Rust for Windows

25 releases (8 breaking)

new 0.9.6 May 5, 2021
0.9.4 Apr 29, 2021
0.9.0 Mar 25, 2021
0.2.2 Nov 24, 2020
0.1.1 Jul 24, 2020

#48 in GUI

Download history 45/week @ 2021-01-16 60/week @ 2021-01-23 29/week @ 2021-01-30 48/week @ 2021-02-06 92/week @ 2021-02-13 48/week @ 2021-02-20 19/week @ 2021-02-27 23/week @ 2021-03-06 15/week @ 2021-03-13 78/week @ 2021-03-20 50/week @ 2021-03-27 46/week @ 2021-04-03 68/week @ 2021-04-10 47/week @ 2021-04-17 62/week @ 2021-04-24 79/week @ 2021-05-01

216 downloads per month

MIT/Apache

130KB
3.5K SLoC

wita

wita at crates.io wita at docs.rs

A window library in Rust for Windows

Hello, world!

struct Application;

impl Application {
    fn new() -> Result<Self, wita::ApiError> {
        wita::WindowBuilder::new()
            .title("hello, world!")
            .build()?;
        Ok(Self)
    }
}

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

fn main() {
    wita::run(wita::RunType::Wait, Application::new).unwrap();
}

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.

Dependencies

~1–1.2MB
~24K SLoC