nxui 0.16.25

A cross-platform GUI toolkit in Rust
#![windows_subsystem = "windows"]

use nxui::graphic::icon::Icon;
use nxui::natives_and_messaging::WS_NORMAL;
use nxui::window::Attributes;
use nxui::window::window::{Window, WindowHandler};

fn main() {
    nxui::initialize();
    let win = Window::new(Attributes::new(
        WS_NORMAL,
        "Icon Window".to_string(),
        "io.github.lattesyobon.icon".to_string(),
        400,
        675,
        100,
        100,
    ));
    win.run(run_app);
}

fn run_app(wh: WindowHandler) {
    wh.set_icon(Icon::new("./icon.ico".to_string()));
    wh.show();
}