Struct pixel_game_lib::WindowConfig
source · pub struct WindowConfig {
pub buffer_size: Extent2<usize>,
pub scaling: usize,
pub title: String,
pub updates_per_second: u32,
}
Expand description
Window configuration.
Fields§
§buffer_size: Extent2<usize>
Amount of pixels for the canvas.
Defaults to (320, 280)
.
scaling: usize
How many times the buffer should be scaled to fit the window.
Defaults to 1
.
title: String
Name in the title bar.
On WASM this will display as a header underneath the rendered content.
Defaults to "Pixel Game"
.
updates_per_second: u32
Updates per second for the update loop.
Defaults to 60
.
Trait Implementations§
source§impl Clone for WindowConfig
impl Clone for WindowConfig
source§fn clone(&self) -> WindowConfig
fn clone(&self) -> WindowConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for WindowConfig
impl Debug for WindowConfig
Auto Trait Implementations§
impl RefUnwindSafe for WindowConfig
impl Send for WindowConfig
impl Sync for WindowConfig
impl Unpin for WindowConfig
impl UnwindSafe for WindowConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more