FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ColorMatrixEffect

    struct · ferroui-base · v0.5.0

    struct ColorMatrixEffect
    

    Transforms the colours of its source by a matrix (Win2D ColorMatrixEffect).

    View source

    Members

    name

    name: String
    

    The name of the effect.

    Source

    color_matrix

    color_matrix: crate::media::ColorMatrix
    

    The matrix (default the identity).

    Source

    alpha_mode

    alpha_mode: crate::media::ColorMatrixAlphaMode
    

    Whether the matrix applies to premultiplied or straight colours (default premultiplied).

    Source

    clamp_output

    clamp_output: bool
    

    Whether the output is clamped to 0..1 (default false; the drawing contexts always clamp).

    Source

    source

    source: Option<GraphicsEffectSource>
    

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

    Availability

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