pub struct RectangleHandle(pub Uuid);Expand description
Handle to a Rectangle sub-object of a code window, for use in animation builders.
Tuple Fields§
§0: UuidImplementations§
Source§impl RectangleHandle
impl RectangleHandle
Sourcepub const fn position(&self) -> PositionBuilder
pub const fn position(&self) -> PositionBuilder
Returns a builder for an animation that moves this object to a target position.
handle.position()
.to(Vec2::new(100.0, 200.0))
.over(5.s())
.ease(Ease::InOutCubic),Sourcepub const fn scale(&self) -> ScaleBuilder
pub const fn scale(&self) -> ScaleBuilder
Returns a builder for an animation that scales this object.
handle.scale()
.to(Vec2::new(2.0, 2.0))
.over(5.s())
.ease(Ease::InOutCubic),Sourcepub const fn rotation(&self) -> RotateBuilder
pub const fn rotation(&self) -> RotateBuilder
Returns a builder for an animation that rotates this object.
handle.rotation()
.to(360.0)
.over(5.s())
.ease(Ease::InOutCubic),Trait Implementations§
Source§impl From<RectangleHandle> for Uuid
impl From<RectangleHandle> for Uuid
Source§fn from(h: RectangleHandle) -> Uuid
fn from(h: RectangleHandle) -> Uuid
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RectangleHandle
impl RefUnwindSafe for RectangleHandle
impl Send for RectangleHandle
impl Sync for RectangleHandle
impl Unpin for RectangleHandle
impl UnsafeUnpin for RectangleHandle
impl UnwindSafe for RectangleHandle
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