Struct speedy2d::window::WindowStartupInfo
source · pub struct WindowStartupInfo { /* private fields */ }
Expand description
Information about the starting state of the window.
Implementations§
source§impl WindowStartupInfo
impl WindowStartupInfo
sourcepub fn scale_factor(&self) -> f64
pub fn scale_factor(&self) -> f64
The scale factor of the window. When a high-dpi display is in use,
this will be greater than 1.0
.
sourcepub fn viewport_size_pixels(&self) -> &UVec2
pub fn viewport_size_pixels(&self) -> &UVec2
The size of the viewport in pixels.
Trait Implementations§
source§impl Clone for WindowStartupInfo
impl Clone for WindowStartupInfo
source§fn clone(&self) -> WindowStartupInfo
fn clone(&self) -> WindowStartupInfo
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 more