[−][src]Struct embedded_graphics_simulator::WindowBuilder
Builder for simulator windows.
Methods
impl WindowBuilder
[src]
pub fn new<C>(display: &SimulatorDisplay<C>) -> Self where
C: PixelColor,
[src]
C: PixelColor,
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
Auto Trait Implementations
impl RefUnwindSafe for WindowBuilder
impl Send for WindowBuilder
impl Sync for WindowBuilder
impl Unpin for WindowBuilder
impl UnwindSafe for WindowBuilder
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>,