pub struct RefreshSpec {
pub refreshing: bool,
pub displacement: f32,
pub size: f32,
pub color: Option<Color>,
pub background: Option<Color>,
}Expand description
What a RefreshIndicator widget tells the frame about itself: everything the shell and the
paint need, without either of them holding on to the widget.
Fields§
§refreshing: boolThe application says it is working.
displacement: f32Where the indicator rests, in px below the edge, while it spins.
size: f32The indicator’s diameter, in px.
color: Option<Color>The ring’s colour; None takes the theme’s primary.
background: Option<Color>The disc behind the ring; None takes the theme’s surface.
Trait Implementations§
Source§impl Clone for RefreshSpec
impl Clone for RefreshSpec
impl Copy for RefreshSpec
Source§impl Debug for RefreshSpec
impl Debug for RefreshSpec
Source§impl Default for RefreshSpec
impl Default for RefreshSpec
Source§impl PartialEq for RefreshSpec
impl PartialEq for RefreshSpec
impl StructuralPartialEq for RefreshSpec
Auto Trait Implementations§
impl Freeze for RefreshSpec
impl RefUnwindSafe for RefreshSpec
impl Send for RefreshSpec
impl Sync for RefreshSpec
impl Unpin for RefreshSpec
impl UnsafeUnpin for RefreshSpec
impl UnwindSafe for RefreshSpec
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