FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ICompositionObjectAnimations

    trait · ferroui-base · v0.5.0

    trait ICompositionObjectAnimations
    

    The animation members of CompositionObject, written against the class that embeds one.

    View source

    Members

    composition_object

    fn composition_object(self: &Self) -> &CompositionObject
    

    The embedded CompositionObject.

    Source

    try_get_animation_controller

    fn try_get_animation_controller(self: &Self, property_name: &str) -> Option<Rc<AnimationController>>
    

    The controller of the animation of the named property (TryGetAnimationController): the controller it was started with, or a new controller that takes the running animation over. None when no animation was started on the property through this object, or it was stopped.

    Source

    stop_animation

    fn stop_animation(self: &Self, property_name: &str)
    

    Disconnects an animation from the named property and stops it, applying its stop behavior. property_name may name a sub-channel (Offset.X): the animations of the sub-channels that share a component with it are stopped.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.