Module gauge
Expand description
Gauges: ProgressRing (a countdown or progress ring with a centred
readout) and BarGauge (a labelled horizontal bar).
The ring sweeps clockwise from 12 o’clock (-π/2) with a round-capped
arc over a track that registers against the ground and leaves the fill
at least 3:1 against it. Its fill is progress (the inverted fill), a
measured level that turns warning and danger past GaugeThresholds,
or a Tone. The bar fills a rounded track left to right. Every colour
and size comes from the Theme.
Structs§
- BarGauge
- Labelled horizontal bar gauge — a rounded track with a left-anchored fill, a top-left label and a right-aligned value readout.
- Gauge
Reading - What an immediate-mode gauge paints: how full it is, in which colour, and the text around it. Either string may be empty.
- Gauge
Style - Paint options of a
BarGauge. - Gauge
Thresholds - Fraction thresholds (inclusive lower bounds) at which a gauge switches
from success → warning → danger. The default mirrors the dashboard
convention:
>= 0.85danger,>= 0.6warning, else success. - Progress
Ring - A retained progress ring. See
ProgressRingFace. - Progress
Ring Face - Immediate-mode progress ring: a countdown or progress with an optional centred readout.
- Ring
Reading - What a state-bound ring shows (
ProgressRing::from_state).
Enums§
- Progress
Ring Size - How large a
ProgressRingis. Each size reads from the theme’s metrics, so it follows the UI scale.