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 for WindowStartupInfo
impl PartialEq 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 ==
.impl StructuralPartialEq for WindowStartupInfo
Auto Trait Implementations§
impl Freeze for WindowStartupInfo
impl RefUnwindSafe for WindowStartupInfo
impl Send for WindowStartupInfo
impl Sync for WindowStartupInfo
impl Unpin for WindowStartupInfo
impl UnwindSafe for WindowStartupInfo
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