pub struct CircularProgressBar { /* private fields */ }Expand description
Circular progress indicator
A circular progress display with optional percentage label.
§Example
use armas_basic::CircularProgressBar;
// Determinate progress (0-100)
CircularProgressBar::new(75.0)
.size(80.0)
.show_percentage(true)
.show(ui);
// Indeterminate/loading mode
CircularProgressBar::indeterminate()
.size(60.0)
.show(ui);Implementations§
Source§impl CircularProgressBar
impl CircularProgressBar
Sourcepub const fn indeterminate() -> Self
pub const fn indeterminate() -> Self
Create an indeterminate circular progress (loading spinner)
Sourcepub const fn stroke_width(self, width: f32) -> Self
pub const fn stroke_width(self, width: f32) -> Self
Set stroke width
Sourcepub const fn show_percentage(self, show: bool) -> Self
pub const fn show_percentage(self, show: bool) -> Self
Show percentage in center (only for determinate mode)
Auto Trait Implementations§
impl Freeze for CircularProgressBar
impl RefUnwindSafe for CircularProgressBar
impl Send for CircularProgressBar
impl Sync for CircularProgressBar
impl Unpin for CircularProgressBar
impl UnsafeUnpin 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