FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CompositionBlendMode

    enum · ferroui-base · v0.5.0

    enum CompositionBlendMode
    

    View source

    Members

    Clear

    Clear
    

    No regions are enabled.

    Source

    Src

    Src
    

    Only the source will be present.

    Source

    Dst

    Dst
    

    Only the destination will be present.

    Source

    SrcOver

    SrcOver
    

    Source is placed over the destination.

    Source

    DstOver

    DstOver
    

    Destination is placed over the source.

    Source

    SrcIn

    SrcIn
    

    The source that overlaps the destination, replaces the destination.

    Source

    DstIn

    DstIn
    

    Destination which overlaps the source, replaces the source.

    Source

    SrcOut

    SrcOut
    

    Source is placed, where it falls outside of the destination.

    Source

    DstOut

    DstOut
    

    Destination is placed, where it falls outside of the source.

    Source

    SrcATop

    SrcATop
    

    Source which overlaps the destination, replaces the destination.

    Source

    DstATop

    DstATop
    

    Destination which overlaps the source replaces the source.

    Source

    Xor

    Xor
    

    The non-overlapping regions of source and destination are combined.

    Source

    Plus

    Plus
    

    Display the sum of the source image and destination image.

    Source

    Modulate

    Modulate
    

    Multiplies all components (= alpha and color).

    Source

    Screen

    Screen
    

    Multiplies the complements of the backdrop and source color values, then complements the result.

    Source

    Overlay

    Overlay
    

    Multiplies or screens the colors, depending on the backdrop color value.

    Source

    Darken

    Darken
    

    Selects the darker of the backdrop and source colors.

    Source

    Lighten

    Lighten
    

    Selects the lighter of the backdrop and source colors.

    Source

    ColorDodge

    ColorDodge
    

    Brightens the backdrop color to reflect the source color.

    Source

    ColorBurn

    ColorBurn
    

    Darkens the backdrop color to reflect the source color.

    Source

    HardLight

    HardLight
    

    Multiplies or screens the colors, depending on the source color value.

    Source

    SoftLight

    SoftLight
    

    Darkens or lightens the colors, depending on the source color value.

    Source

    Difference

    Difference
    

    Subtracts the darker of the two constituent colors from the lighter color.

    Source

    Exclusion

    Exclusion
    

    Produces an effect similar to that of the Difference mode but lower in contrast.

    Source

    Multiply

    Multiply
    

    The source color is multiplied by the destination color and replaces the destination.

    Source

    Hue

    Hue
    

    Creates a color with the hue of the source color and the saturation and luminosity of the backdrop color.

    Source

    Saturation

    Saturation
    

    Creates a color with the saturation of the source color and the hue and luminosity of the backdrop color.

    Source

    Color

    Color
    

    Creates a color with the hue and saturation of the source color and the luminosity of the backdrop color.

    Source

    Luminosity

    Luminosity
    

    Creates a color with the luminosity of the source color and the hue and saturation of the backdrop color.

    Source

    Trait implementations

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

    Availability

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