Crates.io | kitsune_ui |
lib.rs | kitsune_ui |
version | 0.5.0 |
source | src |
created_at | 2023-09-16 09:54:16.287788 |
updated_at | 2023-09-22 19:31:38.58851 |
description | A retained-mode UI library in rust |
homepage | |
repository | |
max_upload_size | |
id | 974257 |
size | 2,145,647 |
❗ disclaimer
This is just a proof of concept for now, and it is by no means meant to be used yet.
This is a retained mode User Interface library.
widget
for user types.Using the window
feature, it is very easy to draw a widget in a winit
window.
use kitsune_ui::window::{Window, Result};
#[tokio::main]
async fn main() -> Result<()> {
let widget = 'a';
let window = Window::new(widget).await?;
window.run();
Ok(())
}
Here the widget
could be any value that implements the kitsune_ui::widget::Widget
trait.