pub struct StatePatch { /* private fields */ }Implementations§
Source§impl StatePatch
impl StatePatch
pub fn new() -> Self
pub fn background(self, color: impl Into<Live<Color>>) -> Self
pub fn opacity(self, opacity: impl Into<Live<f32>>) -> Self
pub fn scale(self, scale: impl Into<Live<f32>>) -> Self
pub fn offset(self, offset: impl Into<Live<Vec2>>) -> Self
pub fn translate(self, dx: f32, dy: f32) -> Self
pub fn rotate(self, degrees: impl Into<Live<f32>>) -> Self
pub fn animate(self, spec: impl Into<AnimSpec>) -> Self
pub fn spring(self, spec: SpringSpec) -> Self
Trait Implementations§
Source§impl Clone for StatePatch
impl Clone for StatePatch
Auto Trait Implementations§
impl !RefUnwindSafe for StatePatch
impl !Send for StatePatch
impl !Sync for StatePatch
impl !UnwindSafe for StatePatch
impl Freeze for StatePatch
impl Unpin for StatePatch
impl UnsafeUnpin for StatePatch
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