[−][src]Struct pixel_canvas::canvas::CanvasInfo
Information about the Canvas.
Fields
width: usizeThe width of the canvas, in virtual pixels.
height: usizeThe height of the canvas, in virtual pixels.
title: StringThe base title for the window.
hidpi: boolWhether the canvas will render in hidpi mode. Defaults to false.
dpi: f64The DPI factor. If hidpi is on, the virtual dimensions are multiplied by this factor to create the actual image resolution. For example, if you're on a Retina Macbook, this will be 2.0, so the image will be twice the resolution that you specified.
show_ms: boolWhether the window title will display the time to render a frame.
Defaults to false.
render_on_change: boolOnly call the render callback if there's a state change.
Defaults to false, which means it will instead render at a fixed framerate.
Auto Trait Implementations
impl Send for CanvasInfo
impl Unpin for CanvasInfo
impl Sync for CanvasInfo
impl UnwindSafe for CanvasInfo
impl RefUnwindSafe for CanvasInfo
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,