Skip to main content

ICompositionAnimationBase

Trait ICompositionAnimationBase 

Source
pub trait ICompositionAnimationBase: 'static {
    // Provided methods
    fn as_composition_animation(&self) -> Option<&dyn ICompositionAnimation> { ... }
    fn as_composition_animation_group(
        &self,
    ) -> Option<&CompositionAnimationGroup> { ... }
}
Expand description

Base class for composition animations.

What can be started on a composition object: a single animation (ICompositionAnimation) or a group of animations (CompositionAnimationGroup). Upstream the interface is closed to other implementations by an internal member; here the two accessors stand for the is CompositionAnimation and is CompositionAnimationGroup tests of upstream.

Provided Methods§

Source

fn as_composition_animation(&self) -> Option<&dyn ICompositionAnimation>

The animation when it is a single animation rather than a group.

Source

fn as_composition_animation_group(&self) -> Option<&CompositionAnimationGroup>

The group when it is a group of animations.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§