Enum primitives::prelude::FullScreen
source · [−]pub enum FullScreen {
Disabled,
NoScale,
ScaleAspectRatioIgnore,
ScaleAspectRatioPreserve,
ScaleNearestMultiple,
Custom {
value: f32,
},
}
Expand description
Representing possible full screen modes.
Can be extended with Custom by using concrete project values.
Variants
Disabled
FullScreen mode is not available.
NoScale
Preserves original pixel size.
ScaleAspectRatioIgnore
Scale without preserving aspect ratio - some distortion may occur, including non linear pixel sizes.
ScaleAspectRatioPreserve
Scale without aspect ratio distortion. Non linear pixel sizes may occur.
ScaleNearestMultiple
Scale without distortion, and doubling pixels (2x2, 4x4 etc) to nearest multiple to preserve pixel sizes.
Custom
Fields
value: f32
Scale value
Allows Scale to be extended (e.g. for using project specific scale modes).
Trait Implementations
sourceimpl Clone for FullScreen
impl Clone for FullScreen
sourcefn clone(&self) -> FullScreen
fn clone(&self) -> FullScreen
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 FullScreen
impl Debug for FullScreen
sourceimpl PartialEq<FullScreen> for FullScreen
impl PartialEq<FullScreen> for FullScreen
sourcefn eq(&self, other: &FullScreen) -> bool
fn eq(&self, other: &FullScreen) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &FullScreen) -> bool
fn ne(&self, other: &FullScreen) -> bool
This method tests for !=
.
impl Copy for FullScreen
impl StructuralPartialEq for FullScreen
Auto Trait Implementations
impl RefUnwindSafe for FullScreen
impl Send for FullScreen
impl Sync for FullScreen
impl Unpin for FullScreen
impl UnwindSafe for FullScreen
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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