pub struct Spinner {
pub size: f32,
pub speed: f32,
pub bar_count: usize,
pub bar_width: f32,
/* private fields */
}Expand description
Rotating spinner with multiple bars
A classic loading spinner with 12 rotating bars that have staggered opacity for a smooth animation effect.
§Example
use armas_basic::components::Spinner;
fn ui(ui: &mut egui::Ui, spinner: &mut Spinner) {
spinner.show(ui);
}Fields§
§size: f32Size of the spinner in pixels
speed: f32Rotation speed in radians per second
bar_count: usizeNumber of bars in the spinner
bar_width: f32Width of each bar
Implementations§
Trait Implementations§
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