Struct simple_pixels::Config
source · pub struct Config {
pub window_title: String,
pub window_width: u32,
pub window_height: u32,
pub window_resizable: bool,
pub fullscreen: bool,
pub high_dpi: bool,
pub icon: Option<Box<Icon>>,
}Expand description
Application window settings.
Fields§
§window_title: StringTitle of the window.
Default: empty string.
window_width: u32Width of the window.
Default: 800
window_height: u32Height of the window.
Default: 600
window_resizable: boolDetermines if the application user can resize the window.
Default: false
fullscreen: boolWhether the window should be created in fullscreen mode.
Default: false
high_dpi: boolWhether the rendering canvas is full-resolution on HighDPI displays. See https://docs.rs/miniquad/0.3.16/miniquad/conf/index.html#high-dpi-rendering for details.
Default: false
icon: Option<Box<Icon>>An optional icon for the window taskbar.
Only works on Windows as of currently used version of miniquad.
Default: None
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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