pub struct PropertyExpression<T: Default> {
pub id: usize,
pub cached_value: T,
pub transition_manager: TransitionManager<T>,
}
Fields§
§id: usize
§cached_value: T
§transition_manager: TransitionManager<T>
Implementations§
Trait Implementations§
Source§impl<T: Default + Clone> PropertyInstance<T> for PropertyExpression<T>
impl<T: Default + Clone> PropertyInstance<T> for PropertyExpression<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> Freeze for PropertyExpression<T>where
T: Freeze,
impl<T> !RefUnwindSafe for PropertyExpression<T>
impl<T> !Send for PropertyExpression<T>
impl<T> !Sync for PropertyExpression<T>
impl<T> Unpin for PropertyExpression<T>where
T: Unpin,
impl<T> !UnwindSafe for PropertyExpression<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
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.