Struct macroquad::window::Conf [−][src]
pub struct Conf {
pub window_title: String,
pub window_width: i32,
pub window_height: i32,
pub high_dpi: bool,
pub fullscreen: bool,
pub sample_count: i32,
pub window_resizable: bool,
pub icon: Option<Icon>,
}
Fields
window_title: String
Title of the window, defaults to an empty string.
window_width: i32
The preferred width of the window, ignored on wasm/android.
Default: 800
window_height: i32
The preferred height of the window, ignored on wasm/android.
Default: 600
high_dpi: bool
Whether the rendering canvas is full-resolution on HighDPI displays.
Default: false
fullscreen: bool
Whether the window should be created in fullscreen mode, ignored on wasm/android.
Default: false
sample_count: i32
MSAA sample count
Default: 1
window_resizable: bool
Determines if the application user can resize the window
icon: Option<Icon>
Miniquad allows to change the window icon programmatically. The icon will be used as
- taskbar and titlebar icons on Windows.
- TODO: favicon on HTML5
- TODO: taskbar and titlebar(highly dependent on the WM) icons on Linux
- TODO: dock and titlebar icon on MacOs
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Conf
impl UnwindSafe for Conf
Blanket Implementations
Mutably borrows from an owned value. Read more