pub enum CameraScaling {
None,
Constant(f32),
Stretch(Vec2<f32>),
FitHorizontal(f32),
FitVertical(f32),
FitToView {
size: Vec2<f32>,
inside: bool,
},
}
Variants§
Implementations§
Source§impl CameraScaling
impl CameraScaling
Trait Implementations§
Source§impl Clone for CameraScaling
impl Clone for CameraScaling
Source§fn clone(&self) -> CameraScaling
fn clone(&self) -> CameraScaling
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 CameraScaling
impl Debug for CameraScaling
Source§impl Default for CameraScaling
impl Default for CameraScaling
Source§fn default() -> CameraScaling
fn default() -> CameraScaling
Returns the “default value” for a type. Read more
impl Copy for CameraScaling
Auto Trait Implementations§
impl Freeze for CameraScaling
impl RefUnwindSafe for CameraScaling
impl Send for CameraScaling
impl Sync for CameraScaling
impl Unpin for CameraScaling
impl UnwindSafe for CameraScaling
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