FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    SceneTransition

    struct · ferroui-controls-livecharts · v0.5.0

    struct SceneTransition
    

    A transition between two complete, immutable measured scenes.

    Retarget by passing Rc::new(previous.sample(now_ms)) as the next from scene. The first sample of the new transition is exactly that scene, including partially faded primitives; no geometry jumps back to its previous target.

    View source

    Members

    new

    fn new(from: Rc<Scene>, to: Rc<Scene>, started_ms: f64, duration_ms: f64) -> Self
    

    Source

    with_easing

    fn with_easing(self: Self, easing: EasingFunction) -> Self
    

    Source

    is_completed

    fn is_completed(self: &Self, now_ms: f64) -> bool
    

    Source

    sample

    fn sample(self: &Self, now_ms: f64) -> Scene
    

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ClassDefaults
    • ErasedDestructor
    • IntoEither

    Availability

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