Skip to main content

draw_readouts

Function draw_readouts 

pub fn draw_readouts(
    scene: &mut Scene,
    transform: Affine,
    tr: &mut TextRenderer,
    theme: &Theme,
    bar: Rect,
    left: &[StatusReadout<'_>],
    right: &[StatusReadout<'_>],
    hovered: Option<usize>,
) -> Vec<Rect>
Expand description

Draw the status bar in bar with left readouts from its leading edge and right readouts from its trailing edge, s4 apart. hovered is an index into left then right (as the returned rects are ordered). Returns each readout’s rect, for hit-testing the clickable ones.