#windows

wita

A window library in Rust for Windows

33 releases (9 breaking)

0.10.5 Jul 6, 2021
0.10.2 May 30, 2021
0.9.0 Mar 25, 2021
0.2.2 Nov 24, 2020
0.1.1 Jul 24, 2020

#71 in GUI

Download history 46/week @ 2021-04-02 23/week @ 2021-04-09 66/week @ 2021-04-16 80/week @ 2021-04-23 86/week @ 2021-04-30 15/week @ 2021-05-07 98/week @ 2021-05-14 21/week @ 2021-05-21 29/week @ 2021-05-28 8/week @ 2021-06-04 95/week @ 2021-06-11 6/week @ 2021-06-18 25/week @ 2021-06-25 23/week @ 2021-07-02 10/week @ 2021-07-09 44/week @ 2021-07-16

194 downloads per month
Used in mltg

MIT/Apache

135KB
4K 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

~0.7–1MB
~23K SLoC