FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    GravityConnectedAnimationConfiguration

    struct · ferroui-controls · v0.5.0

    struct GravityConnectedAnimationConfiguration
    

    Produces a gravity-physics effect suitable for forward navigation: the element arcs slightly as it travels and casts an animated shadow. This is the default configuration when none is specified.

    Use DirectConnectedAnimationConfiguration for back navigation and BasicConnectedAnimationConfiguration for a plain transition.

    View source

    Members

    new

    fn new() -> Rc<Self>
    

    Creates the configuration.

    Source

    is_shadow_enabled

    fn is_shadow_enabled(self: &Self) -> bool
    

    Gets whether a drop shadow is rendered beneath the element during the gravity arc. Defaults to true.

    Source

    set_is_shadow_enabled

    fn set_is_shadow_enabled(self: &Self, value: bool)
    

    Sets whether a drop shadow is rendered beneath the element during the gravity arc.

    Source

    with_is_shadow_enabled

    fn with_is_shadow_enabled(self: Rc<Self>, value: bool) -> Rc<Self>
    

    Sets is_shadow_enabled and returns the configuration.

    Source

    Trait implementations

    Availability

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