retroglyph-widgets 0.2.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 Terminal 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::{Rect, Terminal, backend::Headless};
use retroglyph_widgets::{Gauge, Widget};

let mut term = Terminal::new(Headless::new(20, 1));
Gauge::new("HP", 0.75).render(Rect::new(0, 0, 20, 1), &mut term);
term.present().unwrap();

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