stipple 0.0.1

Stipple: a cross-platform, self-drawn UI toolkit in Rust. Umbrella crate — App builder, prelude, and re-exports.
Documentation

Stipple — a cross-platform, self-drawn UI toolkit in Rust.

This umbrella crate ties the layers together and provides the [App] entry point and a [prelude]. See ROADMAP.md for the architecture and phased plan.

use stipple::prelude::*;

struct Counter {
    n: i64,
}

let mut app = App::new(Counter { n: 0 }, |state: &Counter, cx: &mut Cx<Counter>| {
    let theme = *cx.theme();
    panel(
        &theme,
        vec![button(&theme).on_tap(cx, |s: &mut Counter| s.n += 1)],
    )
})
.title("Counter")
.logical_size(Size::new(360.0, 200.0));

// Render one frame off-screen (no window needed) and inspect it.
let frame = app.render_once();
assert_eq!(frame.size().width, 360);