pub enum CompositeOperation {
SourceOver,
SourceIn,
SourceOut,
Atop,
DestinationOver,
DestinationIn,
DestinationOut,
DestinationAtop,
Lighter,
Copy,
Xor,
}Expand description
Predefined composite oprations.
Variants§
SourceOver
Displays the source over the destination.
SourceIn
Displays the source in the destination, i.e. only the part of the source inside the destination is shown and the destination is transparent.
SourceOut
Only displays the part of the source that is outside the destination, which is made transparent.
Atop
Displays the source on top of the destination. The part of the source outside the destination is not shown.
DestinationOver
Displays the destination over the source.
DestinationIn
Only displays the part of the destination that is inside the source, which is made transparent.
DestinationOut
Only displays the part of the destination that is outside the source, which is made transparent.
DestinationAtop
Displays the destination on top of the source. The part of the destination that is outside the source is not shown.
Lighter
Displays the source together with the destination, the overlapping area is rendered lighter.
Copy
Ignores the destination and just displays the source.
Xor
Only the areas that exclusively belong either to the destination or the source are displayed. Overlapping parts are ignored.
Trait Implementations§
Source§impl Clone for CompositeOperation
impl Clone for CompositeOperation
Source§fn clone(&self) -> CompositeOperation
fn clone(&self) -> CompositeOperation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more