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 moresource§impl Debug for WindowStartupInfo
impl Debug for WindowStartupInfo
source§impl PartialEq<WindowStartupInfo> for WindowStartupInfo
impl PartialEq<WindowStartupInfo> for WindowStartupInfo
source§fn eq(&self, other: &WindowStartupInfo) -> bool
fn eq(&self, other: &WindowStartupInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.