FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ArithmeticCompositeEffect

    struct · ferroui-base · v0.5.0

    struct ArithmeticCompositeEffect
    

    Combines two sources channel by channel as MultiplyAmount * s1 * s2 + Source1Amount * s1 + Source2Amount * s2 + Offset on premultiplied colours (Win2D ArithmeticCompositeEffect). Animatable: MultiplyAmount, Source1Amount, Source2Amount, Offset.

    Drawn when one of the sources is a colour source: the combination is then a colour matrix of the other source. A factory made from one whose sources are both images reports CompositionEffectFactoryError::EffectTypeNotSupported.

    View source

    Members

    name

    name: String
    

    The name of the effect.

    Source

    multiply_amount

    multiply_amount: f32
    

    The weight of the product of the sources (default 1).

    Source

    source1_amount

    source1_amount: f32
    

    The weight of the first source (default 0).

    Source

    source2_amount

    source2_amount: f32
    

    The weight of the second source (default 0).

    Source

    offset

    offset: f32
    

    The constant added (default 0).

    Source

    clamp_output

    clamp_output: bool
    

    Whether the output is clamped (stored; the drawing contexts clamp).

    Source

    source1

    source1: Option<GraphicsEffectSource>
    

    The first input.

    Source

    source2

    source2: Option<GraphicsEffectSource>
    

    The second input.

    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<ArithmeticCompositeEffect>
    • Clone
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Default

    Availability

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