FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    BlendEffectMode

    enum · ferroui-base · v0.5.0

    enum BlendEffectMode
    

    How a blend effect mixes its foreground into its background (Win2D BlendEffectMode, the modes of Direct2D's blend effect).

    The modes with a counterpart among the blend modes of the drawing contexts are drawn: Multiply, Screen, Darken, Lighten, ColorBurn, ColorDodge, LinearDodge (an addition), Overlay, SoftLight, HardLight, Difference, Exclusion, Hue, Saturation, Color and Luminosity. The other modes are drawn from the pixels of the two sources (docs/porting/winui-materials.md).

    Color keeps the hue and saturation of the foreground and the luminosity of the background; Luminosity the other way round, as Win2D documents them.

    View source

    Members

    Multiply

    Multiply = 0
    

    The default of Win2D.

    Source

    Screen

    Screen = 1
    

    Source

    Darken

    Darken = 2
    

    Source

    Lighten

    Lighten = 3
    

    Source

    Dissolve

    Dissolve = 4
    

    Source

    ColorBurn

    ColorBurn = 5
    

    Source

    LinearBurn

    LinearBurn = 6
    

    Source

    DarkerColor

    DarkerColor = 7
    

    Source

    LighterColor

    LighterColor = 8
    

    Source

    ColorDodge

    ColorDodge = 9
    

    Source

    LinearDodge

    LinearDodge = 10
    

    Source

    Overlay

    Overlay = 11
    

    Source

    SoftLight

    SoftLight = 12
    

    Source

    HardLight

    HardLight = 13
    

    Source

    VividLight

    VividLight = 14
    

    Source

    LinearLight

    LinearLight = 15
    

    Source

    PinLight

    PinLight = 16
    

    Source

    HardMix

    HardMix = 17
    

    Source

    Difference

    Difference = 18
    

    Source

    Exclusion

    Exclusion = 19
    

    Source

    Hue

    Hue = 20
    

    Source

    Saturation

    Saturation = 21
    

    Source

    Color

    Color = 22
    

    Source

    Luminosity

    Luminosity = 23
    

    Source

    Subtract

    Subtract = 24
    

    Source

    Division

    Division = 25
    

    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
    • Clone
    • Copy
    • Debug
    • Default
    • StructuralPartialEq
    • PartialEq
    • Eq
    • Hash

    Availability

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