[][src]Struct embedded_graphics_simulator::SimulatorDisplay

pub struct SimulatorDisplay<C> { /* fields omitted */ }

Display

Methods

impl<C> SimulatorDisplay<C> where
    C: PixelColor
[src]

pub fn with_default_color(size: Size, default_color: C) -> Self[src]

Creates a new display filled with a color.

This constructor can be used if C doesn't implement From<BinaryColor> or another default color is wanted.

pub fn get_pixel(&self, point: Point) -> C[src]

Returns the color of the pixel at a point.

Panics

Panics if point is outside the display.

impl<C> SimulatorDisplay<C> where
    C: PixelColor + From<BinaryColor>, 
[src]

pub fn new(size: Size) -> Self[src]

Creates a new display.

The display is filled with C::from(BinaryColor::Off).

Trait Implementations

impl<C> DrawTarget<C> for SimulatorDisplay<C> where
    C: PixelColor
[src]

type Error = Infallible

Error type to return when a drawing operation fails. Read more

Auto Trait Implementations

impl<C> RefUnwindSafe for SimulatorDisplay<C> where
    C: RefUnwindSafe

impl<C> Send for SimulatorDisplay<C> where
    C: Send

impl<C> Sync for SimulatorDisplay<C> where
    C: Sync

impl<C> Unpin for SimulatorDisplay<C>

impl<C> UnwindSafe for SimulatorDisplay<C> where
    C: UnwindSafe

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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> 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.