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
Allows Scale to be extended (e.g. for using project specific scale modes).
Trait Implementations§
Source§impl Clone for FullScreen
impl Clone for FullScreen
Source§fn clone(&self) -> FullScreen
fn clone(&self) -> FullScreen
Returns a duplicate 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 FullScreen
impl Debug for FullScreen
Source§impl PartialEq for FullScreen
impl PartialEq for FullScreen
impl Copy for FullScreen
impl StructuralPartialEq for FullScreen
Auto Trait Implementations§
impl Freeze for FullScreen
impl RefUnwindSafe for FullScreen
impl Send for FullScreen
impl Sync for FullScreen
impl Unpin for FullScreen
impl UnwindSafe for FullScreen
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Fr, To> IntoColor<To> for Frwhere
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Frwhere
To: FromColor<Fr>,
Source§fn into_color(self) -> To
fn into_color(self) -> To
Convert into color