pub struct Transform {
pub anchor_point: Option<Position>,
pub position: AnyTransformP,
pub scale: Option<MultiDimensional>,
pub rotation: Option<AnyTransformR>,
pub skew: Option<FloatValue>,
pub skew_axis: Option<FloatValue>,
pub opacity: Option<FloatValue>,
}Fields§
§anchor_point: Option<Position>Position (relative to its parent) around which transformations are applied (ie: center for rotation / scale)
position: AnyTransformPPosition / Translation
scale: Option<MultiDimensional>Scale factor, 100 for no scaling
rotation: Option<AnyTransformR>Rotation in degrees, clockwise
skew: Option<FloatValue>Skew amount as an angle in degrees
skew_axis: Option<FloatValue>Direction at which skew is applied, in degrees (0 skews along the X axis, 90 along the Y axis)
opacity: Option<FloatValue>Opacity, 100 for fully opaque
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Transform
impl<'de> Deserialize<'de> for Transform
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Transform
Auto Trait Implementations§
impl Freeze for Transform
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