gpui-kit GitHub

Components

ProgressCircle builder

A ring for work in a place too tight for a bar.

A builder is RenderOnce. Construct and mount it in one expression.

use gpui_kit::display::ProgressCircle;

Construct

new(ident: impl Into<Ident>) -> Self

Options

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>) -> Self
centre(centre: impl Into<SharedString>) -> Self

Rendered by

Each of these compiles and is captured by the gate, so the code behind them is verified rather than written.

Source: crates/gpui-kit/src/display/progress_circle.rs