pub struct ScrinLoader<'a> { /* private fields */ }Expand description
A themeable Scrin/Aisling loader player as a normal Scrin widget.
Implementations§
Source§impl<'a> ScrinLoader<'a>
impl<'a> ScrinLoader<'a>
Sourcepub fn new(kind: LoaderKind, progress: f32) -> Self
pub fn new(kind: LoaderKind, progress: f32) -> Self
Creates a loader widget with progress clamped to 0.0..=1.0.
Sourcepub fn palette(self, palette: AislingPalette) -> Self
pub fn palette(self, palette: AislingPalette) -> Self
Sets the palette used for Scrin/Aisling accent and gradient colors.
Trait Implementations§
Source§impl<'a> Clone for ScrinLoader<'a>
impl<'a> Clone for ScrinLoader<'a>
Source§fn clone(&self) -> ScrinLoader<'a>
fn clone(&self) -> ScrinLoader<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for ScrinLoader<'a>
impl<'a> Debug for ScrinLoader<'a>
Source§impl PartialEq for ScrinLoader<'_>
impl PartialEq for ScrinLoader<'_>
Auto Trait Implementations§
impl<'a> Freeze for ScrinLoader<'a>
impl<'a> RefUnwindSafe for ScrinLoader<'a>
impl<'a> Send for ScrinLoader<'a>
impl<'a> Sync for ScrinLoader<'a>
impl<'a> Unpin for ScrinLoader<'a>
impl<'a> UnsafeUnpin for ScrinLoader<'a>
impl<'a> UnwindSafe for ScrinLoader<'a>
Blanket Implementations§
Source§impl<W> AislingExt for Wwhere
W: Widget,
impl<W> AislingExt for Wwhere
W: Widget,
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