pub enum ViewportFit {
PreserveAspect,
Stretch,
}Expand description
How a logical viewport uses an allocated pixel rectangle.
Variants§
PreserveAspect
Use one scale for X and Y, potentially leaving unused pixel space.
Stretch
Scale X and Y independently to fill the allocation.
Trait Implementations§
Source§impl Clone for ViewportFit
impl Clone for ViewportFit
impl Copy for ViewportFit
Source§impl Debug for ViewportFit
impl Debug for ViewportFit
Source§impl Default for ViewportFit
impl Default for ViewportFit
impl Eq for ViewportFit
Source§impl Hash for ViewportFit
impl Hash for ViewportFit
Source§impl PartialEq for ViewportFit
impl PartialEq for ViewportFit
impl StructuralPartialEq for ViewportFit
Auto Trait Implementations§
impl Freeze for ViewportFit
impl RefUnwindSafe for ViewportFit
impl Send for ViewportFit
impl Sync for ViewportFit
impl Unpin for ViewportFit
impl UnsafeUnpin for ViewportFit
impl UnwindSafe for ViewportFit
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