Struct egui::widgets::ProgressBar
source · pub struct ProgressBar { /* private fields */ }
Expand description
A simple progress bar.
See also: crate::Spinner
.
Implementations§
source§impl ProgressBar
impl ProgressBar
sourcepub fn desired_width(self, desired_width: f32) -> Self
pub fn desired_width(self, desired_width: f32) -> Self
The desired width of the bar. Will use all horizontal space if not set.
sourcepub fn text(self, text: impl Into<WidgetText>) -> Self
pub fn text(self, text: impl Into<WidgetText>) -> Self
A custom text to display on the progress bar.
sourcepub fn show_percentage(self) -> Self
pub fn show_percentage(self) -> Self
Show the progress in percent on the progress bar.