[−][src]Struct embedded_graphics_simulator::SimulatorDisplay
Display
Methods
impl<C> SimulatorDisplay<C> where
C: PixelColor,
[src]
C: PixelColor,
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]
impl<C> SimulatorDisplay<C> where
C: PixelColor + From<BinaryColor>,
[src]
C: PixelColor + From<BinaryColor>,
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]
C: PixelColor,
type Error = Infallible
Error type to return when a drawing operation fails. Read more
fn draw_pixel(&mut self, pixel: Pixel<C>) -> Result<(), Self::Error>
[src]
fn size(&self) -> Size
[src]
fn draw_iter<T>(&mut self, item: T) -> Result<(), Self::Error> where
T: IntoIterator<Item = Pixel<C>>,
[src]
T: IntoIterator<Item = Pixel<C>>,
fn clear(&mut self, color: C) -> Result<(), Self::Error>
[src]
fn draw_line(
&mut self,
item: &Styled<Line, PrimitiveStyle<C>>
) -> Result<(), Self::Error>
[src]
&mut self,
item: &Styled<Line, PrimitiveStyle<C>>
) -> Result<(), Self::Error>
fn draw_triangle(
&mut self,
item: &Styled<Triangle, PrimitiveStyle<C>>
) -> Result<(), Self::Error>
[src]
&mut self,
item: &Styled<Triangle, PrimitiveStyle<C>>
) -> Result<(), Self::Error>
fn draw_rectangle(
&mut self,
item: &Styled<Rectangle, PrimitiveStyle<C>>
) -> Result<(), Self::Error>
[src]
&mut self,
item: &Styled<Rectangle, PrimitiveStyle<C>>
) -> Result<(), Self::Error>
fn draw_circle(
&mut self,
item: &Styled<Circle, PrimitiveStyle<C>>
) -> Result<(), Self::Error>
[src]
&mut self,
item: &Styled<Circle, PrimitiveStyle<C>>
) -> Result<(), Self::Error>
Auto Trait Implementations
impl<C> RefUnwindSafe for SimulatorDisplay<C> where
C: RefUnwindSafe,
C: RefUnwindSafe,
impl<C> Send for SimulatorDisplay<C> where
C: Send,
C: Send,
impl<C> Sync for SimulatorDisplay<C> where
C: Sync,
C: Sync,
impl<C> Unpin for SimulatorDisplay<C>
impl<C> UnwindSafe for SimulatorDisplay<C> where
C: UnwindSafe,
C: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,