ProgressBar builder
A horizontal bar for work whose extent is known.
A builder is RenderOnce. Construct and mount it in one expression.
use gpui_kit::display::ProgressBar;
Construct
new(ident: impl Into<Ident>) -> SelfOptions
Chain onto the value.
label(label: impl Into<SharedString>) -> Self
fraction(fraction: f32) -> Self
count(done: usize, total: usize) -> Self
display(display: impl Into<SharedString>) -> SelfRendered by
Each of these compiles and is captured by the gate, so the code behind them is verified rather than written.