Struct pax_runtime_api::PropertyLiteral
source · pub struct PropertyLiteral<T> { /* private fields */ }
Expand description
The Literal form of a Property: a bare literal value with support for easing/interpolation
Implementations§
Trait Implementations§
source§impl<T> Into<Box<dyn PropertyInstance<T>>> for PropertyLiteral<T>
impl<T> Into<Box<dyn PropertyInstance<T>>> for PropertyLiteral<T>
source§fn into(self) -> Box<dyn PropertyInstance<T>>
fn into(self) -> Box<dyn PropertyInstance<T>>
Converts this type into the (usually inferred) input type.
source§impl<T: Default + Clone> PropertyInstance<T> for PropertyLiteral<T>
impl<T: Default + Clone> PropertyInstance<T> for PropertyLiteral<T>
fn get(&self) -> &T
fn get_mut(&mut self) -> &mut T
fn _get_vtable_id(&self) -> Option<usize>
fn set(&mut self, value: T)
source§fn ease_to(&mut self, new_value: T, duration_frames: u64, curve: EasingCurve)
fn ease_to(&mut self, new_value: T, duration_frames: u64, curve: EasingCurve)
Immediately start transitioning from current value to the provided
new_value
,
clearing the transition queue before doing sosource§fn ease_to_later(
&mut self,
new_value: T,
duration_frames: u64,
curve: EasingCurve
)
fn ease_to_later( &mut self, new_value: T, duration_frames: u64, curve: EasingCurve )
Add a transition to the transition queue, which will execute
after the current queue is complete. The starting value for this new
transition will be the final value upon completion of the current transition queue.
source§fn _get_transition_manager(&mut self) -> Option<&mut TransitionManager<T>>
fn _get_transition_manager(&mut self) -> Option<&mut TransitionManager<T>>
Used by engine to gain access to this property’s transition queue
Auto Trait Implementations§
impl<T> !RefUnwindSafe for PropertyLiteral<T>
impl<T> !Send for PropertyLiteral<T>
impl<T> !Sync for PropertyLiteral<T>
impl<T> Unpin for PropertyLiteral<T>where
T: Unpin,
impl<T> !UnwindSafe for PropertyLiteral<T>
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