5 releases (breaking)

0.5.0 Sep 22, 2023
0.4.0 Sep 20, 2023
0.3.0 Sep 17, 2023
0.2.0 Sep 16, 2023
0.1.0 Sep 16, 2023

#748 in GUI

34 downloads per month

MIT/Apache

1MB
1.5K SLoC

KITSUNE UI

❗ 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.

Features

  • Dont compile things that haven't changed.
  • Add macro to implement widget for user types.
  • Add ways to layout values, and control their size.
  • Find a way to do user input.
  • Maybe find a way to changed state based on Non-user events.

Getting Started

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.

Dependencies

~3–38MB
~582K SLoC