pub struct Progress { /* private fields */ }Expand description
A progress bar widget
Implementations§
Source§impl Progress
impl Progress
Sourcepub fn style(self, style: ProgressStyle) -> Self
pub fn style(self, style: ProgressStyle) -> Self
Set style
Sourcepub fn filled_color(self, color: Color) -> Self
pub fn filled_color(self, color: Color) -> Self
Set filled bar color
Sourcepub fn empty_color(self, color: Color) -> Self
pub fn empty_color(self, color: Color) -> Self
Set empty bar color
Sourcepub fn show_percentage(self, show: bool) -> Self
pub fn show_percentage(self, show: bool) -> Self
Show percentage text
Sourcepub fn set_progress(&mut self, progress: f32)
pub fn set_progress(&mut self, progress: f32)
Set progress value
Trait Implementations§
Source§impl StyledView for Progress
impl StyledView for Progress
Source§fn remove_class(&mut self, class: &str)
fn remove_class(&mut self, class: &str)
Remove a CSS class
Source§fn toggle_class(&mut self, class: &str)
fn toggle_class(&mut self, class: &str)
Toggle a CSS class
Auto Trait Implementations§
impl Freeze for Progress
impl RefUnwindSafe for Progress
impl Send for Progress
impl Sync for Progress
impl Unpin for Progress
impl UnwindSafe for Progress
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more