pub enum Transform {
Visibility(bool),
Move(Point),
Position(Point),
Color(Option<ColorLike>),
Stroke(Option<Stroke>),
Scale(Point),
Rotate(f64),
}Expand description
Visual guide: Link
Variants§
Visibility(bool)
Change visibility of the object; true = visible, false = hidden
Move(Point)
Move the path in space along the Point
Position(Point)
Set the origin point to the Point
Color(Option<ColorLike>)
Set the color of the object to ColorLike
Stroke(Option<Stroke>)
Change the stroke of the object to the Option<Stroke>
Scale(Point)
Scale x and y by value
Rotate(f64)
Rotate by angle in radiant
Trait Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more