Enum speedy2d::window::WindowSize
source · pub enum WindowSize {
PhysicalPixels(UVec2),
ScaledPixels(Vec2),
MarginPhysicalPixels(u32),
MarginScaledPixels(f32),
}
Expand description
The size of the window to create.
Variants§
PhysicalPixels(UVec2)
Define the window size in pixels.
ScaledPixels(Vec2)
Define the window size in device-independent scaled pixels.
MarginPhysicalPixels(u32)
Make the window fill the screen, except for a margin around the outer edges.
MarginScaledPixels(f32)
Make the window fill the screen, except for a margin around the outer edges.
Trait Implementations§
source§impl Clone for WindowSize
impl Clone for WindowSize
source§fn clone(&self) -> WindowSize
fn clone(&self) -> WindowSize
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 WindowSize
impl Debug for WindowSize
source§impl PartialEq for WindowSize
impl PartialEq for WindowSize
source§fn eq(&self, other: &WindowSize) -> bool
fn eq(&self, other: &WindowSize) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for WindowSize
Auto Trait Implementations§
impl Freeze for WindowSize
impl RefUnwindSafe for WindowSize
impl Send for WindowSize
impl Sync for WindowSize
impl Unpin for WindowSize
impl UnwindSafe for WindowSize
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