Skip to main content

ICompositionObjectHost

Trait ICompositionObjectHost 

Source
pub trait ICompositionObjectHost: IRegisterForSerialization {
    // Required methods
    fn server(&self) -> ServerObjectId;
    fn pending_animations(&self) -> &PendingAnimations;
    fn implicit_animation(
        &self,
        property_name: &str,
    ) -> Option<Rc<dyn ICompositionAnimationBase>>;
    fn start_animation_group(
        &self,
        grp: &Rc<dyn ICompositionAnimationBase>,
        target: &str,
        final_value: ExpressionVariant,
    ) -> bool;
}
Expand description

What a generated client property block needs from the composition object that embeds it (the members of upstream CompositionObject the generated code uses).

Required Methods§

Source

fn server(&self) -> ServerObjectId

The id of the server-side counterpart of the object.

Source

fn pending_animations(&self) -> &PendingAnimations

The animations waiting to be sent with the next batch.

Source

fn implicit_animation( &self, property_name: &str, ) -> Option<Rc<dyn ICompositionAnimationBase>>

The implicit animation attached to a property of the object, if there is one (ImplicitAnimations?.TryGetValue(name)).

Source

fn start_animation_group( &self, grp: &Rc<dyn ICompositionAnimationBase>, target: &str, final_value: ExpressionVariant, ) -> bool

Starts an animation or an animation group triggered by the change of property target to final_value. Returns whether one of the animations targets that property.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§