ezwin 1.0.1

Easy, minimal Win32 window creation
Documentation

ezwin-rs

ko-fi

use ezwin::prelude::*;

fn main() {
  let window = Window::new(
    WindowSettings::default()
      .with_flow(Flow::Wait)
      .with_title("Easy Window")
      .with_size((800, 600)),
  ).unwrap();

  for message in window {
    println!("{:?}", message);
  }
}

ezwin is a easy-to-use Win32 windowing library

⚠️ This project is still very much a WIP; I am only one student, after all. ⚠️

The main goal of ezwin is to have a simple, easy-to-use API. The target audience is game developers looking to create a window quickly and easily. I aim to have feature-parity with winit eventually as a secondary goal. Cross-platform support is unlikely, but pull requests are welcomed if anyone else wants to tackle it.

There are 2 primary threads in ezwin:

  • main: where all the main user code is executed.
  • window: where the window is created and the message pump lives.

This layout was chosen to allow for the window messages not to block the application.

Cargo Features

  • rwh_05 / rwh_06: use the appropriate version of raw-window-handle. rwh_06 is the default.