Enum femtovg::CompositeOperation
source · 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 moresource§impl Debug for CompositeOperation
impl Debug for CompositeOperation
source§impl Hash for CompositeOperation
impl Hash for CompositeOperation
source§impl PartialEq for CompositeOperation
impl PartialEq for CompositeOperation
source§fn eq(&self, other: &CompositeOperation) -> bool
fn eq(&self, other: &CompositeOperation) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CompositeOperation
impl PartialOrd for CompositeOperation
source§fn partial_cmp(&self, other: &CompositeOperation) -> Option<Ordering>
fn partial_cmp(&self, other: &CompositeOperation) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more