pub struct ServerObjectAnimations { /* private fields */ }Expand description
The animations of a server object and the animations of other objects that depend on its properties.
Implementations§
Source§impl ServerObjectAnimations
impl ServerObjectAnimations
pub fn new( owner: Weak<dyn IAnimatedServerObject>, compositor: Weak<ServerCompositor>, ) -> Self
pub fn activated(&self)
pub fn deactivated(&self)
pub fn on_set_direct_value(&self, property: &CompositionProperty)
pub fn on_set_animated_value( &self, property: &'static CompositionProperty, current_value: ExpressionVariant, committed_at: Duration, animation: Rc<dyn IAnimationInstance>, )
pub fn remove_animation_for_property(&self, property: &CompositionProperty)
pub fn subscribe_to_invalidation( &self, member: &CompositionProperty, animation: Rc<dyn IAnimationInstance>, )
pub fn unsubscribe_from_invalidation( &self, member: &CompositionProperty, animation: &Rc<dyn IAnimationInstance>, )
pub fn get_property_for_animation(&self, name: &str) -> ExpressionVariant
pub fn evaluate_animations(&self)
Sourcepub fn notify_animation_instance_invalidated(
this: &Rc<Self>,
property: &CompositionProperty,
)
pub fn notify_animation_instance_invalidated( this: &Rc<Self>, property: &CompositionProperty, )
this is the handle of these animations.
Auto Trait Implementations§
impl !Freeze for ServerObjectAnimations
impl !RefUnwindSafe for ServerObjectAnimations
impl !Send for ServerObjectAnimations
impl !Sync for ServerObjectAnimations
impl !UnwindSafe for ServerObjectAnimations
impl Unpin for ServerObjectAnimations
impl UnsafeUnpin for ServerObjectAnimations
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