[−][src]Struct embedded_graphics_web_simulator::output_settings::OutputSettingsBuilder
Output settings builder.
Methods
impl OutputSettingsBuilder
[src]
pub fn new() -> Self
[src]
Creates new output settings builder.
pub fn scale(self, scale: u32) -> Self
[src]
Sets the pixel scale.
A scale of 2
or higher is useful for viewing the simulator on high DPI displays.
Panics
Panics if the scale is set to 0
.
pub fn pixel_spacing(self, pixel_spacing: u32) -> Self
[src]
Sets the gap between pixels.
Most lower resolution displays have visible gaps between individual pixels.
This effect can be simulated by setting the pixel spacing to a value greater
than 0
.
pub fn build(self) -> OutputSettings
[src]
Builds the output settings.
Auto Trait Implementations
impl RefUnwindSafe for OutputSettingsBuilder
impl Send for OutputSettingsBuilder
impl Sync for OutputSettingsBuilder
impl Unpin for OutputSettingsBuilder
impl UnwindSafe for OutputSettingsBuilder
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>,