#[repr(i32)]pub enum CanvasComposite {
Show 13 variants
SourceOver = 0,
DestinationOver = 1,
SourceIn = 2,
DestinationIn = 3,
SourceOut = 4,
DestinationOut = 5,
SourceAtop = 6,
DestinationAtop = 7,
Xor = 8,
Add = 9,
Copy = 10,
BoundedCopy = 11,
MaskInvert = 12,
}Expand description
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).
Variants§
SourceOver = 0
Each source drawn over the previous ones (the Win2D default).
DestinationOver = 1
SourceIn = 2
DestinationIn = 3
SourceOut = 4
DestinationOut = 5
SourceAtop = 6
DestinationAtop = 7
Xor = 8
Add = 9
Copy = 10
BoundedCopy = 11
MaskInvert = 12
Trait Implementations§
Source§impl Clone for CanvasComposite
impl Clone for CanvasComposite
impl Copy for CanvasComposite
Source§impl Debug for CanvasComposite
impl Debug for CanvasComposite
Source§impl Default for CanvasComposite
impl Default for CanvasComposite
impl Eq for CanvasComposite
Source§impl Hash for CanvasComposite
impl Hash for CanvasComposite
Source§impl PartialEq for CanvasComposite
impl PartialEq for CanvasComposite
impl StructuralPartialEq for CanvasComposite
Auto Trait Implementations§
impl Freeze for CanvasComposite
impl RefUnwindSafe for CanvasComposite
impl Send for CanvasComposite
impl Sync for CanvasComposite
impl Unpin for CanvasComposite
impl UnsafeUnpin for CanvasComposite
impl UnwindSafe for CanvasComposite
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more