pub enum FillMode {
Stretch,
PreserveAspectFit,
}Expand description
The fill mode to use when rendering a tileset’s tiles at a size differing from their native size.
Variants§
Stretch
The tile image is stretched to fill the target rectangle.
PreserveAspectFit
The tile image is scaled to fit the target rectangle while preserving its aspect ratio.
Trait Implementations§
impl Copy for FillMode
impl Eq for FillMode
impl StructuralPartialEq for FillMode
Auto Trait Implementations§
impl Forget for FillMode
impl Freeze for FillMode
impl Move for FillMode
impl RefUnwindSafe for FillMode
impl Send for FillMode
impl Sync for FillMode
impl Unpin for FillMode
impl UnsafeUnpin for FillMode
impl UnwindSafe for FillMode
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