wiard 0.8.1

Window handling library for Windows in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
fn main() -> anyhow::Result<()> {
    let mut event_rx = wiard::EventReceiver::new();
    let _window = wiard::Window::builder(&event_rx)
        .title("wiard icon")
        .icon(wiard::Icon::from_path("examples/icon.ico"))
        .build()?;
    loop {
        if event_rx.recv().is_none() {
            break;
        }
    }
    Ok(())
}