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 moreimpl Copy for CompositeOperation
impl Eq for CompositeOperation
impl StructuralPartialEq for CompositeOperation
Auto Trait Implementations§
impl Freeze for CompositeOperation
impl RefUnwindSafe for CompositeOperation
impl Send for CompositeOperation
impl Sync for CompositeOperation
impl Unpin for CompositeOperation
impl UnwindSafe for CompositeOperation
Blanket Implementations§
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)