pub struct ScrollDisplayOptions<'d, const N: usize, T, CLK, DIO, DELAY, I, D> { /* private fields */ }
Expand description
High-level API for scroll animations.
Implementations§
Source§impl<'d, const N: usize, T, CLK, DIO, DELAY, I, M> ScrollDisplayOptions<'d, N, T, CLK, DIO, DELAY, I, M>
impl<'d, const N: usize, T, CLK, DIO, DELAY, I, M> ScrollDisplayOptions<'d, N, T, CLK, DIO, DELAY, I, M>
Sourcepub fn new(
options: DisplayOptions<'d, N, T, CLK, DIO, DELAY, I, M>,
delay_ms: u32,
direction: ScrollDirection,
style: ScrollStyle,
) -> Self
pub fn new( options: DisplayOptions<'d, N, T, CLK, DIO, DELAY, I, M>, delay_ms: u32, direction: ScrollDirection, style: ScrollStyle, ) -> Self
Create a new ScrollDisplayOptions
instance.
Sourcepub fn new_with_defaults(
options: DisplayOptions<'d, N, T, CLK, DIO, DELAY, I, M>,
) -> Self
pub fn new_with_defaults( options: DisplayOptions<'d, N, T, CLK, DIO, DELAY, I, M>, ) -> Self
Create a new ScrollDisplayOptions
instance with default settings.
Sourcepub const fn delay_ms(self, delay_ms: u32) -> Self
pub const fn delay_ms(self, delay_ms: u32) -> Self
Set the delay in milliseconds between each animation step.
Sourcepub const fn direction(self, direction: ScrollDirection) -> Self
pub const fn direction(self, direction: ScrollDirection) -> Self
Set the animation direction.
Sourcepub const fn left(self) -> Self
pub const fn left(self) -> Self
Set the animation direction to ScrollDirection::LeftToRight
.
Sourcepub const fn right(self) -> Self
pub const fn right(self) -> Self
Set the animation direction to ScrollDirection::RightToLeft
.
Sourcepub const fn style(self, style: ScrollStyle) -> Self
pub const fn style(self, style: ScrollStyle) -> Self
Set the animation style.
Sourcepub fn finish(
self,
) -> Scroller<'d, N, T, CLK, DIO, DELAY, impl Iterator<Item = impl DoubleEndedIterator<Item = u8> + ExactSizeIterator>, M>
pub fn finish( self, ) -> Scroller<'d, N, T, CLK, DIO, DELAY, impl Iterator<Item = impl DoubleEndedIterator<Item = u8> + ExactSizeIterator>, M>
Finish setting the scroll animation.
Trait Implementations§
Source§impl<'d, const N: usize, T: Debug, CLK: Debug, DIO: Debug, DELAY: Debug, I: Debug, D: Debug> Debug for ScrollDisplayOptions<'d, N, T, CLK, DIO, DELAY, I, D>
impl<'d, const N: usize, T: Debug, CLK: Debug, DIO: Debug, DELAY: Debug, I: Debug, D: Debug> Debug for ScrollDisplayOptions<'d, N, T, CLK, DIO, DELAY, I, D>
Source§impl<'d, const N: usize, T, CLK, DIO, DELAY, I, D> Format for ScrollDisplayOptions<'d, N, T, CLK, DIO, DELAY, I, D>where
DisplayOptions<'d, N, T, CLK, DIO, DELAY, I, D>: Format,
ScrollDirection: Format,
ScrollStyle: Format,
impl<'d, const N: usize, T, CLK, DIO, DELAY, I, D> Format for ScrollDisplayOptions<'d, N, T, CLK, DIO, DELAY, I, D>where
DisplayOptions<'d, N, T, CLK, DIO, DELAY, I, D>: Format,
ScrollDirection: Format,
ScrollStyle: Format,
Auto Trait Implementations§
impl<'d, const N: usize, T, CLK, DIO, DELAY, I, D> Freeze for ScrollDisplayOptions<'d, N, T, CLK, DIO, DELAY, I, D>
impl<'d, const N: usize, T, CLK, DIO, DELAY, I, D> RefUnwindSafe for ScrollDisplayOptions<'d, N, T, CLK, DIO, DELAY, I, D>where
I: RefUnwindSafe,
D: RefUnwindSafe,
CLK: RefUnwindSafe,
DIO: RefUnwindSafe,
DELAY: RefUnwindSafe,
T: RefUnwindSafe,
impl<'d, const N: usize, T, CLK, DIO, DELAY, I, D> Send for ScrollDisplayOptions<'d, N, T, CLK, DIO, DELAY, I, D>
impl<'d, const N: usize, T, CLK, DIO, DELAY, I, D> Sync for ScrollDisplayOptions<'d, N, T, CLK, DIO, DELAY, I, D>
impl<'d, const N: usize, T, CLK, DIO, DELAY, I, D> Unpin for ScrollDisplayOptions<'d, N, T, CLK, DIO, DELAY, I, D>
impl<'d, const N: usize, T, CLK, DIO, DELAY, I, D> !UnwindSafe for ScrollDisplayOptions<'d, N, T, CLK, DIO, DELAY, I, D>
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