winey

Crates.iowiney
lib.rswiney
version0.1.1
sourcesrc
created_at2023-04-19 14:04:32.183673
updated_at2023-04-22 04:51:28.505872
descriptionSimple windowing library
homepage
repository
max_upload_size
id843579
size35,045
(Lattexshz)

documentation

README

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

Commit count: 0

cargo fmt