Crates.io | blinds |
lib.rs | blinds |
version | 0.2.0 |
source | src |
created_at | 2019-11-17 04:20:56.347092 |
updated_at | 2020-09-12 05:05:03.944515 |
description | Wrap an async abstraction over a window |
homepage | |
repository | https://github.com/ryanisaacg/blinds |
max_upload_size | |
id | 181936 |
size | 95,417 |
blinds
covers up the details of your windowing for you, by providing an async API.
use blinds::{run, Event, EventStream, Key, Settings, Window};
fn main() {
run(Settings::default(), app);
}
async fn app(_window: Window, mut events: EventStream) {
loop {
while let Some(ev) = events.next_event().await {
println!("{:?}", ev);
}
}
}