Struct sensehat_screen::scroll::Scroll[][src]

pub struct Scroll(_);

A type representing a collection of PixelFrames that may be scrolled.

Methods

impl Scroll
[src]

Creates a new scroll from a slice of PixelFrames.

Panics

The scroll needs at least 2 PixelFrames to be created.

Returns &[PixelFrame] with the pixel frames that constitute this scroll.

Returns Vec<Clip> with the pixel frames clips that may be rendered.

Reverse the order of the inner pixel frames.

Return the number of pixel frames in the scroll.

Important traits for FrameSequence

Returns a FrameSequence iterator that moves the frames from the right to the left.

Important traits for FrameSequence

Returns a FrameSequence iterator that moves the frames from the left to the right.

Important traits for FrameSequence

Returns a FrameSequence iterator that moves the frames from the top to the bottom.

Important traits for FrameSequence

Returns a FrameSequence iterator that moves the frames from the bottom to the bottom.

Trait Implementations

impl Debug for Scroll
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Scroll
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Index<usize> for Scroll
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

Auto Trait Implementations

impl Send for Scroll

impl Sync for Scroll