Enum simple_blit::Transform
source · pub enum Transform {
UpScale {
x: u32,
y: u32,
},
Rotate90Cw,
Rotate90Ccw,
Rotate180,
FlipHorizontal,
FlipVertical,
FlipBoth,
}Expand description
Transformations that can be applied when blitting.
Variants§
UpScale
Scales the destination. Only upscaling is supported.
Rotate90Cw
Rotates the destination 90 degrees clockwise.
Rotate90Ccw
Rotates the destination 90 degrees counter-clockwise.
Rotate180
Rotates the destination 180 degrees.
FlipHorizontal
Flips the destination horizontally.
FlipVertical
Flips the destination vertically.
FlipBoth
/// Flips the destination horizontally and vertically.
Trait Implementations§
source§impl PartialEq for Transform
impl PartialEq for Transform
impl Copy for Transform
impl Eq for Transform
impl StructuralPartialEq for Transform
Auto Trait Implementations§
impl RefUnwindSafe for Transform
impl Send for Transform
impl Sync for Transform
impl Unpin for Transform
impl UnwindSafe for Transform
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