[−][src]Struct rmicrobit::graphics::scrolling::ScrollingImages
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.
fn length(&self) -> usize
[src]
fn state(&self) -> &ScrollingState
[src]
fn state_mut(&mut self) -> &mut ScrollingState
[src]
fn subimage(&self, index: usize) -> &T
[src]
fn current_brightness_at(&self, x: usize, y: usize) -> u8
[src]
impl<T: Copy + Render + 'static> Copy for ScrollingImages<T>
[src]
impl<T: Clone + Render + 'static> Clone for ScrollingImages<T>
[src]
fn clone(&self) -> ScrollingImages<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Render + 'static> Default for ScrollingImages<T>
[src]
fn default() -> ScrollingImages<T>
[src]
impl<T: Render + 'static> Render for ScrollingImages<T>
[src]
fn brightness_at(&self, x: usize, y: usize) -> u8
[src]
Auto Trait Implementations
impl<T> Unpin for ScrollingImages<T>
impl<T> Send for ScrollingImages<T> where
T: Sync,
T: Sync,
impl<T> Sync for ScrollingImages<T> where
T: Sync,
T: Sync,
Blanket Implementations
impl<T> Animate for T where
T: Scrollable,
[src]
T: Scrollable,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self