pub fn meter(
ui: &mut Ui,
meter: &Meter<'_>,
palette: &Palette,
style: &WidgetStyle,
) -> ResponseExpand description
A proportion as a bar and a reading.
The reading is built here from the two numbers and the noun, for the reason
makeover-tui states: Meter::label carries the noun alone, so each
renderer picks its own sentence order rather than the description picking one
for all of them.
A bar that has run over is drawn full and reads over. done may exceed
total and that is the case worth drawing, per Meter’s own docs: the fill
is clamped because a rect cannot be longer than itself, and the reading is
not, because “9/6” is the fact the user needs. Clamping both would hide the
overrun entirely, which is the bug goingson’s is_over_estimate flag exists
to recover from on the other side.
A zero total is no set rather than a complete one, so it draws empty.