retroglyph-widgets 0.4.1

Immediate-mode drawing helpers for retroglyph (panels, gauges, tables, sparklines)
Documentation

retroglyph-widgets

crates.io docs.rs coverage license

Immediate-mode drawing helpers for retroglyph: box borders, filled panels, gauges, tables, lists, tab strips, buttons, sparklines, and a small constraint-based layout splitter (split_h/split_v with ratatui-style Fixed/Percent/Fill/Min/Max constraints), plus hover/click/drag/focus interaction tracking. Every widget is a builder struct that draws itself into a Surface (an area-relative view over a Grid) and retains no state of its own; depends only on retroglyph-core, so games that draw manually never pull it in.

Theme (Theme::DARK/Theme::LIGHT, or a caller-built palette) is a set of named color roles -- every widget with a style knob has a matching .theme(Theme) builder method that maps those roles onto it, optionally: nothing requires a Theme at all, and a manual .border_style(...)/etc. call after .theme(...) still wins.

Quick start

[dependencies]
retroglyph-core = "0.1"
retroglyph-widgets = "0.1"
use retroglyph_core::{Grid, Rect};
use retroglyph_widgets::{Gauge, Surface, Widget};

let area = Rect::new(0, 0, 20, 1);
let mut grid = Grid::new(20, 1);
Gauge::new("HP", 0.75).render(area, &mut Surface::new(&mut grid, area, 0));

See docs.rs for the full API, or the workspace README for the crate list.