FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Rotate3DTransition

    struct · ferroui-base · v0.5.0

    struct Rotate3DTransition
    

    Transitions between two pages by rotating them around a shared axis in 3D. It is a PageSlide whose members it derefs to.

    View source

    Members

    new

    fn new() -> Self
    

    Creates a horizontal rotation with a zero duration.

    Source

    with_duration

    fn with_duration(duration: SignedDuration, orientation: SlideAxis, depth: Option<f64>) -> Self
    

    Creates a rotation with the given duration and axis. depth defines the depth of the 3D effect; when None it is calculated automatically.

    Source

    depth

    fn depth(self: &Self) -> Option<f64>
    

    Defines the depth of the 3D effect. If None, the depth is calculated automatically.

    Source

    set_depth

    fn set_depth(self: &Self, value: Option<f64>)
    

    Source

    Trait implementations

    Availability

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