[][src]Struct embedded_graphics_simulator::WindowBuilder

pub struct WindowBuilder { /* fields omitted */ }

Builder for simulator windows.

Methods

impl WindowBuilder[src]

pub fn new<C>(display: &SimulatorDisplay<C>) -> Self where
    C: PixelColor
[src]

Creates a new simulator window builder.

The display parameter is used to set the size of the window.

pub fn scale(&mut self, scale: usize) -> &mut Self[src]

Sets the pixel scale.

A scale of 2 or higher is useful for viewing the simulator on high DPI displays.

pub fn theme(&mut self, theme: BinaryColorTheme) -> &mut Self[src]

Sets the binary color theme for the display to use.

pub fn pixel_spacing(&mut self, pixel_spacing: usize) -> &mut Self[src]

Adds a gap between pixels, simulating the same effect of a physical display

pub fn title(&mut self, title: &str) -> &mut Self[src]

Sets the window title.

pub fn build(&self) -> Window[src]

Builds the window.

Trait Implementations

impl Debug for WindowBuilder[src]

Auto Trait Implementations

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.