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)
Sourcepub fn stop_animation_for_property(
&self,
property: &'static CompositionProperty,
)
pub fn stop_animation_for_property( &self, property: &'static CompositionProperty, )
StopAnimation of the property: removes its animation and applies
the stop behavior of the animation (WinUI AnimationStopBehavior;
upstream only removes the animation).
Sourcepub fn stop_subchannel_animation(
&self,
property: &'static CompositionProperty,
components: &[usize],
)
pub fn stop_subchannel_animation( &self, property: &'static CompositionProperty, components: &[usize], )
StopAnimation of a sub-channel of the property (Offset.X): stops
the animations of the sub-channels that share a component with
components and applies their stop behavior. An animation of the
whole property is left running.
Sourcepub fn attach_controller(
&self,
property: &CompositionProperty,
controller: ServerObjectId,
)
pub fn attach_controller( &self, property: &CompositionProperty, controller: ServerObjectId, )
Puts the animation of property, if it has one, under the
animation controller whose property set has the id controller
(TryGetAnimationController of an animation started without one).
Sourcepub fn release_completions(&self)
pub fn release_completions(&self)
Releases the batches of every animation of the object: its composition object is disposed, which stops its animations for the batches (WinUI).
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
affects_render, metadata
overrides). Read more