etui/widgets/progress
Types
pub type ProgressBar {
ProgressBar(
mode: ProgressMode,
label: String,
filled_char: String,
empty_char: String,
segment_width: Int,
fg: style.Color,
bg: style.Color,
filled_modifier: style.Modifier,
empty_modifier: style.Modifier,
)
}
Constructors
-
ProgressBar( mode: ProgressMode, label: String, filled_char: String, empty_char: String, segment_width: Int, fg: style.Color, bg: style.Color, filled_modifier: style.Modifier, empty_modifier: style.Modifier, )Arguments
- segment_width
-
Indeterminate segment size as a percentage of bar width (1–100).
pub type ProgressMode {
Determinate(percent: Int)
Indeterminate
}
Constructors
-
Determinate(percent: Int) -
Indeterminate
Values
pub fn progress_indeterminate() -> ProgressBar
pub fn progress_new(percent: Int) -> ProgressBar
pub fn render(
buf: buffer.Buffer,
area: geometry.Rect,
p: ProgressBar,
frame: Int,
) -> buffer.Buffer
pub fn with_chars(
p: ProgressBar,
filled: String,
empty: String,
) -> ProgressBar
pub fn with_colors(
p: ProgressBar,
fg: style.Color,
bg: style.Color,
) -> ProgressBar
pub fn with_empty_modifier(
p: ProgressBar,
m: style.Modifier,
) -> ProgressBar
pub fn with_filled_modifier(
p: ProgressBar,
m: style.Modifier,
) -> ProgressBar
pub fn with_label(p: ProgressBar, label: String) -> ProgressBar
pub fn with_segment_width(
p: ProgressBar,
pct: Int,
) -> ProgressBar
Indeterminate segment size as a percentage of bar width (1–100).
pub fn with_style(p: ProgressBar, s: style.Style) -> ProgressBar