makeover-immediate 0.70.0

The immediate-mode renderer for makeover-layout, backed by egui: no cascade, no retained tree, one stroke per widget.
Documentation

makeover-immediate

The immediate-mode renderer for makeover-layout.

Written against egui. egui draws one stroke per widget with no per-side control, so this crate paints the two-tone lit edge by hand.

What it owns

The expression, and nothing else. Two mitred polylines for a bevel and a Frame for a filled region.

It makes no substitutions. Palette::well is a required Color32, read from makeover's derived surface-well.

It picks no colours and no sizes. Palette is handed in already resolved, and every radius, margin, stroke width and floor arrives in a style type (FrameStyle, FieldStyle, PieceStyle, TableStyle, host::Metrics). Where one has a default it is the suite's number: the focus ring (2 points) and the target floor (24 points) match makeover-webview.

makeover is linked only by the theme feature, which adds Palette::from_theme. Without it an app builds a palette from Palette::two_tone and a setter per colour.

The vocabulary members (fields, columns, meters, controls, facts, figures and charts) are drawn by quasi-immediate. This crate draws what carries no member: depth, the palette, a table's per-frame facts and cell tones, tokens and waits, and the egui visuals a host starts from.

Usage

use makeover_immediate::{frame, FrameStyle, Palette};
use makeover_layout::Depth;

frame(ui, Depth::Raised, &palette, style, |ui| {
    ui.label("a card laid on the panel it sits in");
});

A pressed control is Depth::Raised.pressed(), asked at each call site.

Status

On crates.io. Design lives in the wiki note makeover-immediate; work is tracked in GoingsOn under the makeover project, one project for the suite.

Licence

MIT.