[][src]Struct druid::widget::Spinner

pub struct Spinner { /* fields omitted */ }

An animated spinner widget for showing a loading state.

To customize the spinner's size, you can place it inside a SizedBox that has a fixed width and height.

Implementations

impl Spinner[src]

pub fn new() -> Spinner[src]

Create a spinner widget

pub fn with_color(self, color: impl Into<KeyOrValue<Color>>) -> Self[src]

Builder-style method for setting the spinner's color.

The argument can be either a Color or a Key<Color>.

pub fn set_color(&mut self, color: impl Into<KeyOrValue<Color>>)[src]

Set the spinner's color.

The argument can be either a Color or a Key<Color>.

Trait Implementations

impl Default for Spinner[src]

impl<T: Data> Widget<T> for Spinner[src]

Auto Trait Implementations

impl RefUnwindSafe for Spinner

impl !Send for Spinner

impl !Sync for Spinner

impl Unpin for Spinner

impl UnwindSafe for Spinner

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> RoundFrom<T> for T

impl<T, U> RoundInto<U> for T where
    U: RoundFrom<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.