FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CrossFadeEffect

    struct · ferroui-base · v0.5.0

    struct CrossFadeEffect
    

    Blends two sources by a weight (Win2D CrossFadeEffect): source1 at weight 0, source2 at weight 1. Animatable: Weight (also as CrossFade, the name of the Win2D member).

    View source

    Members

    name

    name: String
    

    The name of the effect.

    Source

    weight

    weight: f32
    

    The weight of source2, 0 to 1 (default 0.5).

    Source

    source1

    source1: Option<GraphicsEffectSource>
    

    The input shown at weight 0.

    Source

    source2

    source2: Option<GraphicsEffectSource>
    

    The input shown at weight 1.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • From<CrossFadeEffect>
    • Clone
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Default

    Availability

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