[][src]Trait epd_waveshare_uart::graphics::Display

pub trait Display: Drawing<EpdColor> {
    fn buffer(&self) -> &[EpdColor];
fn get_mut_buffer(&mut self) -> &mut [EpdColor];
fn set_rotation(&mut self, rotation: DisplayRotation);
fn rotation(&self) -> DisplayRotation; fn clear_buffer(&mut self, background_color: EpdColor) { ... }
fn draw_helper<T>(&mut self, width: u32, height: u32, item_pixels: T)
    where
        T: IntoIterator<Item = Pixel<EpdColor>>
, { ... } }

Required methods

fn buffer(&self) -> &[EpdColor]

Returns the buffer

fn get_mut_buffer(&mut self) -> &mut [EpdColor]

Returns a mutable buffer

fn set_rotation(&mut self, rotation: DisplayRotation)

Sets the rotation of the display

fn rotation(&self) -> DisplayRotation

Get the current rotation of the display

Loading content...

Provided methods

fn clear_buffer(&mut self, background_color: EpdColor)

Clears the buffer of the display with the chosen background color

fn draw_helper<T>(&mut self, width: u32, height: u32, item_pixels: T) where
    T: IntoIterator<Item = Pixel<EpdColor>>, 

Helperfunction for the Embedded Graphics draw trait

Becomes uneccesary when const_generics become stablised

Loading content...

Implementors

impl Display for Display4in3[src]

impl<'a> Display for VarDisplay<'a>[src]

Loading content...