Enum components::prelude::FullScreen
[−]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
impl Clone for FullScreen
impl Clone for FullScreen
fn 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
impl Debug for FullScreen
impl Debug for FullScreen
impl PartialEq<FullScreen> for FullScreen
impl PartialEq<FullScreen> for FullScreen
fn 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
fn 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
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
fn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.