#windowing #window #window-event #key-code #platform

winey

Simple windowing library

2 releases

0.1.1 Apr 22, 2023
0.1.0 Apr 19, 2023

#6 in #key-code

32 downloads per month
Used in gsfk

MIT license

31KB
836 lines

Winey - Windowing library for Rust

Lines of code

Target

  • Simple and easy to use
  • Highly customizable (see detailed examples here)

Supported platforms

  • Windows
  • MacOS
  • Xlib
  • Wayland

Example

use winey::window::Window;
use winey::{KeyCode, WindowEvent, WineyWindowImplementation};

fn main() {
    let window = Window::new("Hello World", 500, 500);

    window.show();

    window.run(|event,control_flow| {
        match event {
            WindowEvent::CloseRequested => {
                control_flow.exit(0);
            }

            _ => {

            }
        }
    })
}

License

Winey is under MIT LICENSE

Dependencies

~0.5–12MB
~80K SLoC