pub struct SpinnerProps {
pub layout: LayoutStyle,
pub color: Option<Color>,
pub dot_count: u8,
pub speed: f32,
}Expand description
A simple loading spinner primitive.
This is intentionally low-opinionated and renderer-friendly: it paints a ring of small rounded
quads with frame-driven alpha modulation (Effect::RequestAnimationFrame).
Fields§
§layout: LayoutStyle§color: Option<Color>§dot_count: u8§speed: f32Phase increment per frame, in dot steps. (0.0 disables animation.)
Trait Implementations§
Source§impl Clone for SpinnerProps
impl Clone for SpinnerProps
Source§fn clone(&self) -> SpinnerProps
fn clone(&self) -> SpinnerProps
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SpinnerProps
impl Debug for SpinnerProps
Source§impl Default for SpinnerProps
impl Default for SpinnerProps
impl Copy for SpinnerProps
Auto Trait Implementations§
impl Freeze for SpinnerProps
impl RefUnwindSafe for SpinnerProps
impl Send for SpinnerProps
impl Sync for SpinnerProps
impl Unpin for SpinnerProps
impl UnsafeUnpin for SpinnerProps
impl UnwindSafe for SpinnerProps
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