Module progress_bar
Expand description
ProgressBar โ determinate / indeterminate horizontal progress indicator.
Determinate mode paints a rounded track with a fill that scales from
0 to track_width proportional to progress (clamped to [0, 1]).
Indeterminate mode ignores progress and slides a fixed-width segment
(30 % of the track) across the track on a 2 s period โ the position
fraction is start.elapsed().as_secs_f32() % 2.0 / 2.0.
The fill is progress (the inverted fill) unless the bar shows a measured
level (ProgressBar::level) or a status (ProgressBar::tone). Under
reduced motion and the capture clock the indeterminate segment holds
still in the middle of the track, so a screenshot is the same every run.
ProgressBarFace paints the same bar for a host that paints into a
Scene.
Structsยง
- Progress
Bar - Progress
BarFace - Immediate-mode progress bar, for a host that paints into a
Scene.