pub struct CircularProgressBar { /* private fields */ }Expand description
A circular progress bar widget for egui
Implementations§
Source§impl CircularProgressBar
impl CircularProgressBar
Sourcepub fn new(progress: f32) -> Self
pub fn new(progress: f32) -> Self
Create a new circular progress bar with the given progress (0.0 to 1.0)
Sourcepub fn text(self, text: impl Into<String>) -> Self
pub fn text(self, text: impl Into<String>) -> Self
Add text to display in the center of the progress bar
Sourcepub fn indeterminate() -> Self
pub fn indeterminate() -> Self
Create an indeterminate progress bar (animated)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CircularProgressBar
impl RefUnwindSafe for CircularProgressBar
impl Send for CircularProgressBar
impl Sync for CircularProgressBar
impl Unpin for CircularProgressBar
impl UnwindSafe for CircularProgressBar
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