pub struct StatePatch { /* private fields */ }Implementations§
Source§impl StatePatch
impl StatePatch
pub fn new() -> StatePatch
pub fn background(self, color: impl Into<Live<Color>>) -> StatePatch
pub fn opacity(self, opacity: impl Into<Live<f32>>) -> StatePatch
pub fn scale(self, scale: impl Into<Live<f32>>) -> StatePatch
pub fn offset(self, offset: impl Into<Live<Vec2>>) -> StatePatch
pub fn translate(self, dx: f32, dy: f32) -> StatePatch
pub fn rotate(self, degrees: impl Into<Live<f32>>) -> StatePatch
pub fn animate(self, spec: impl Into<AnimSpec>) -> StatePatch
pub fn spring(self, spec: SpringSpec) -> StatePatch
Trait Implementations§
Source§impl Clone for StatePatch
impl Clone for StatePatch
Source§fn clone(&self) -> StatePatch
fn clone(&self) -> StatePatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for StatePatch
impl Default for StatePatch
Source§fn default() -> StatePatch
fn default() -> StatePatch
Returns the “default value” for a type. Read more
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