pub enum TransformKind {
Show 13 variants
TranslateX,
TranslateY,
Scale,
ScaleX,
ScaleY,
Rotate,
RotateX,
RotateY,
SkewX,
SkewY,
Perspective,
TranslateXFraction,
TranslateYFraction,
}Expand description
One kind of transform entry.
Variants§
TranslateX
translateX, points.
TranslateY
translateY, points.
Scale
scale.
ScaleX
scaleX.
ScaleY
scaleY.
Rotate
rotate / rotateZ, degrees clockwise.
RotateX
rotateX, degrees.
RotateY
rotateY, degrees.
SkewX
skewX, degrees.
SkewY
skewY, degrees.
Perspective
perspective, the distance of the viewer in points.
TranslateXFraction
A translation by a fraction of the view’s width (translate-x-1/2);
the core turns it into TranslateX with the view’s size before it
reaches a platform.
TranslateYFraction
A translation by a fraction of the view’s height.
Implementations§
Trait Implementations§
Source§impl Clone for TransformKind
impl Clone for TransformKind
impl Copy for TransformKind
Source§impl Debug for TransformKind
impl Debug for TransformKind
impl Eq for TransformKind
Source§impl Hash for TransformKind
impl Hash for TransformKind
Source§impl PartialEq for TransformKind
impl PartialEq for TransformKind
impl StructuralPartialEq for TransformKind
Auto Trait Implementations§
impl Forget for TransformKind
impl Freeze for TransformKind
impl Move for TransformKind
impl RefUnwindSafe for TransformKind
impl Send for TransformKind
impl Sync for TransformKind
impl Unpin for TransformKind
impl UnsafeUnpin for TransformKind
impl UnwindSafe for TransformKind
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