pub enum ViewportScaling {
Integer,
Fractional,
}Expand description
Toggles integer scaling for the viewport.
Variants§
Integer
Integer scaling. Coordinates will always use the smallest multiple of window coordinates.
Fractional
No integer scaling.
Trait Implementations§
Source§impl Clone for ViewportScaling
impl Clone for ViewportScaling
Source§fn clone(&self) -> ViewportScaling
fn clone(&self) -> ViewportScaling
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 moreAuto Trait Implementations§
impl Freeze for ViewportScaling
impl RefUnwindSafe for ViewportScaling
impl Send for ViewportScaling
impl Sync for ViewportScaling
impl Unpin for ViewportScaling
impl UnwindSafe for ViewportScaling
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