wita 0.20.0

A window library in Rust for Windows
Documentation
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::Window::builder()
            .title("wita icon")
            .icon(wita::Icon::from_path("examples/icon.ico"))
            .build()?;
        Ok(Self)
    }
}

impl wita::EventHandler for Application {}

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