pub struct ScrinEffect<'a> { /* private fields */ }Expand description
A themeable Scrin/Aisling effect player as a normal Scrin widget.
Implementations§
Source§impl<'a> ScrinEffect<'a>
impl<'a> ScrinEffect<'a>
Sourcepub fn new(kind: EffectKind, text: impl Into<Cow<'a, str>>) -> Self
pub fn new(kind: EffectKind, text: impl Into<Cow<'a, str>>) -> Self
Creates an Aisling effect widget powered by Scrin’s EffectPlayer.
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 ScrinEffect<'a>
impl<'a> Clone for ScrinEffect<'a>
Source§fn clone(&self) -> ScrinEffect<'a>
fn clone(&self) -> ScrinEffect<'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 ScrinEffect<'a>
impl<'a> Debug for ScrinEffect<'a>
Source§impl PartialEq for ScrinEffect<'_>
impl PartialEq for ScrinEffect<'_>
Auto Trait Implementations§
impl<'a> Freeze for ScrinEffect<'a>
impl<'a> RefUnwindSafe for ScrinEffect<'a>
impl<'a> Send for ScrinEffect<'a>
impl<'a> Sync for ScrinEffect<'a>
impl<'a> Unpin for ScrinEffect<'a>
impl<'a> UnsafeUnpin for ScrinEffect<'a>
impl<'a> UnwindSafe for ScrinEffect<'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