pub struct PendingAnimations { /* private fields */ }Expand description
The animation instances created on the UI thread (as their factories) that have not been sent to the server yet, by the property they animate.
Implementations§
Source§impl PendingAnimations
impl PendingAnimations
pub fn new() -> Self
pub fn count(&self) -> usize
Sourcepub fn remove(&self, property: &CompositionProperty) -> bool
pub fn remove(&self, property: &CompositionProperty) -> bool
Drops the pending animation of a property. Returns whether there was one.
Sourcepub fn set(
&self,
property: &CompositionProperty,
animation: AnimationInstanceFactory,
)
pub fn set( &self, property: &CompositionProperty, animation: AnimationInstanceFactory, )
Sets the pending animation of a property, replacing the previous one.
Sourcepub fn get_and_remove(
&self,
property: &CompositionProperty,
) -> Option<AnimationInstanceFactory>
pub fn get_and_remove( &self, property: &CompositionProperty, ) -> Option<AnimationInstanceFactory>
Takes the pending animation of a property.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for PendingAnimations
impl !RefUnwindSafe for PendingAnimations
impl !Sync for PendingAnimations
impl !UnwindSafe for PendingAnimations
impl Send for PendingAnimations
impl Unpin for PendingAnimations
impl UnsafeUnpin for PendingAnimations
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more