wita 0.9.2

A window library in Rust for Windows
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
struct Application;

impl Application {
    fn new() -> anyhow::Result<Self> {
        wita::WindowBuilder::new().build()?;
        Ok(Self)
    }
}

impl wita::EventHandler for Application {}

#[test]
#[should_panic]
pub fn before_run() {
    wita::WindowBuilder::new().build().unwrap();
    wita::run(wita::RunType::Wait, Application::new).unwrap();
}