FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CanvasComposite

    enum · ferroui-base · v0.5.0

    enum CanvasComposite
    

    How a composite effect combines its sources (Win2D CanvasComposite): each source is composed onto what the sources before it made.

    Every mode is drawn: the Porter-Duff modes with the blend layers of the drawing contexts, MaskInvert from the pixels of the sources drawn apart (winui-materials.md).

    View source

    Members

    SourceOver

    SourceOver = 0
    

    Each source drawn over the previous ones (the Win2D default).

    Source

    DestinationOver

    DestinationOver = 1
    

    Source

    SourceIn

    SourceIn = 2
    

    Source

    DestinationIn

    DestinationIn = 3
    

    Source

    SourceOut

    SourceOut = 4
    

    Source

    DestinationOut

    DestinationOut = 5
    

    Source

    SourceAtop

    SourceAtop = 6
    

    Source

    DestinationAtop

    DestinationAtop = 7
    

    Source

    Xor

    Xor = 8
    

    Source

    Add

    Add = 9
    

    Source

    Copy

    Copy = 10
    

    Source

    BoundedCopy

    BoundedCopy = 11
    

    Source

    MaskInvert

    MaskInvert = 12
    

    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.