Struct speedy2d::window::WindowStartupInfo
source · [−]pub struct WindowStartupInfo { /* private fields */ }
Expand description
Information about the starting state of the window.
Implementations
sourceimpl 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
sourceimpl Clone for WindowStartupInfo
impl Clone for WindowStartupInfo
sourcefn clone(&self) -> WindowStartupInfo
fn clone(&self) -> WindowStartupInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for WindowStartupInfo
impl Debug for WindowStartupInfo
sourceimpl PartialEq<WindowStartupInfo> for WindowStartupInfo
impl PartialEq<WindowStartupInfo> for WindowStartupInfo
sourcefn 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 ==
. Read more
impl StructuralPartialEq for WindowStartupInfo
Auto Trait Implementations
impl RefUnwindSafe for WindowStartupInfo
impl Send for WindowStartupInfo
impl Sync for WindowStartupInfo
impl Unpin for WindowStartupInfo
impl UnwindSafe for WindowStartupInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more