pub struct Spinner { /* private fields */ }Expand description
A themed loading spinner.
ui.add(Spinner::new());
ui.add(Spinner::new().size(28.0).accent(Accent::Green));Implementations§
Source§impl Spinner
impl Spinner
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a spinner with the default size (18 pt) and the theme’s sky accent.
Sourcepub fn thickness(self, thickness: f32) -> Self
pub fn thickness(self, thickness: f32) -> Self
Stroke thickness of the arc. Defaults to ~12 % of size (min 1.5 pt).
Trait Implementations§
impl Copy for Spinner
Auto Trait Implementations§
impl Freeze for Spinner
impl RefUnwindSafe for Spinner
impl Send for Spinner
impl Sync for Spinner
impl Unpin for Spinner
impl UnsafeUnpin for Spinner
impl UnwindSafe for Spinner
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