pub struct ScrollingStatics<T: Render + 'static> { /* private fields */ }
Expand description
A Scrollable
displaying a static slice of arbitrary images.
The underlying images can be any sized type that implements Render
.
Implementations§
Source§impl<T: Render + 'static> ScrollingStatics<T>
impl<T: Render + 'static> ScrollingStatics<T>
Sourcepub fn set_images(&mut self, images: &'static [T])
pub fn set_images(&mut self, images: &'static [T])
Specifies the images to be displayed.
This also resets the animation to the beginning.
Trait Implementations§
Source§impl<T: Clone + Render + 'static> Clone for ScrollingStatics<T>
impl<T: Clone + Render + 'static> Clone for ScrollingStatics<T>
Source§fn clone(&self) -> ScrollingStatics<T>
fn clone(&self) -> ScrollingStatics<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: Render + 'static> Default for ScrollingStatics<T>
impl<T: Render + 'static> Default for ScrollingStatics<T>
Source§fn default() -> ScrollingStatics<T>
fn default() -> ScrollingStatics<T>
Returns the “default value” for a type. Read more
Source§impl<T: Render + 'static> Render for ScrollingStatics<T>
impl<T: Render + 'static> Render for ScrollingStatics<T>
Source§impl<T: Render + 'static> Scrollable for ScrollingStatics<T>
impl<T: Render + 'static> Scrollable for ScrollingStatics<T>
Source§fn state(&self) -> &ScrollingState
fn state(&self) -> &ScrollingState
A
ScrollingState
indicating the current point in the animation.Source§fn state_mut(&mut self) -> &mut ScrollingState
fn state_mut(&mut self) -> &mut ScrollingState
A
ScrollingState
indicating the current point in the animation, as
a mutable reference.impl<T: Copy + Render + 'static> Copy for ScrollingStatics<T>
Auto Trait Implementations§
impl<T> Freeze for ScrollingStatics<T>
impl<T> RefUnwindSafe for ScrollingStatics<T>where
T: RefUnwindSafe,
impl<T> Send for ScrollingStatics<T>where
T: Sync,
impl<T> Sync for ScrollingStatics<T>where
T: Sync,
impl<T> Unpin for ScrollingStatics<T>
impl<T> UnwindSafe for ScrollingStatics<T>where
T: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> Animate for Twhere
T: Scrollable,
impl<T> Animate for Twhere
T: Scrollable,
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