[][src]Struct rmicrobit::graphics::scrolling::ScrollingImages

pub struct ScrollingImages<T: Render + 'static> { /* fields omitted */ }

A Scrollable displaying a static slice of arbitrary images.

The underlying images can be any sized type that implements Render.

Methods

impl<T: Render + 'static> ScrollingImages<T>[src]

pub fn set_images(&mut self, images: &'static [T])[src]

Specifies the images to be displayed.

This also resets the animation to the beginning.

Trait Implementations

impl<T: Render + 'static> Scrollable for ScrollingImages<T>[src]

type Subimage = T

The type of the underlying 5×5 images.

impl<T: Copy + Render + 'static> Copy for ScrollingImages<T>[src]

impl<T: Clone + Render + 'static> Clone for ScrollingImages<T>[src]

impl<T: Render + 'static> Default for ScrollingImages<T>[src]

impl<T: Render + 'static> Render for ScrollingImages<T>[src]

Auto Trait Implementations

impl<T> Unpin for ScrollingImages<T>

impl<T> Send for ScrollingImages<T> where
    T: Sync

impl<T> Sync for ScrollingImages<T> where
    T: Sync

Blanket Implementations

impl<T> Animate for T where
    T: Scrollable
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self