FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    DirectConnectedAnimationConfiguration

    struct · ferroui-controls · v0.5.0

    struct DirectConnectedAnimationConfiguration
    

    Produces a direct, linear translation suitable for back navigation. No gravity arc or shadow is applied, and the default duration is shorter (150 ms).

    Assign this to the configuration of a ConnectedAnimation before starting the return animation to animate back to the source view.

    View source

    Members

    new

    fn new() -> Rc<Self>
    

    Creates the configuration.

    Source

    duration

    fn duration(self: &Self) -> Option<Duration>
    

    Gets the duration of the animation. When None, the default duration of the ConnectedAnimationService is used.

    Source

    set_duration

    fn set_duration(self: &Self, value: Option<Duration>)
    

    Sets the duration of the animation.

    Source

    with_duration

    fn with_duration(self: Rc<Self>, value: Option<Duration>) -> Rc<Self>
    

    Sets duration and returns the configuration.

    Source

    Trait implementations

    Availability

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