Skip to main content

ServerObjectAnimations

Struct ServerObjectAnimations 

Source
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

Source

pub fn new( owner: Weak<dyn IAnimatedServerObject>, compositor: Weak<ServerCompositor>, ) -> Self

Source

pub fn activated(&self)

Source

pub fn deactivated(&self)

Source

pub fn on_set_direct_value(&self, property: &CompositionProperty)

Source

pub fn on_set_animated_value( &self, property: &'static CompositionProperty, current_value: ExpressionVariant, committed_at: Duration, animation: Rc<dyn IAnimationInstance>, )

Source

pub fn remove_animation_for_property(&self, property: &CompositionProperty)

Source

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).

Source

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.

Source

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).

Source

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).

Source

pub fn subscribe_to_invalidation( &self, member: &CompositionProperty, animation: Rc<dyn IAnimationInstance>, )

Source

pub fn unsubscribe_from_invalidation( &self, member: &CompositionProperty, animation: &Rc<dyn IAnimationInstance>, )

Source

pub fn get_property_for_animation(&self, name: &str) -> ExpressionVariant

Source

pub fn evaluate_animations(&self)

Source

pub fn notify_animation_instance_invalidated( this: &Rc<Self>, property: &CompositionProperty, )

this is the handle of these animations.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ClassDefaults for T
where T: ?Sized,

Source§

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
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.