Enum vg::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
sourceimpl Clone for CompositeOperation
impl Clone for CompositeOperation
sourcefn clone(&self) -> CompositeOperation
fn clone(&self) -> CompositeOperation
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CompositeOperation
impl Debug for CompositeOperation
sourceimpl Hash for CompositeOperation
impl Hash for CompositeOperation
sourceimpl PartialOrd<CompositeOperation> for CompositeOperation
impl PartialOrd<CompositeOperation> for CompositeOperation
sourcefn partial_cmp(&self, other: &CompositeOperation) -> Option<Ordering>
fn partial_cmp(&self, other: &CompositeOperation) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for CompositeOperation
impl Eq for CompositeOperation
impl StructuralEq for CompositeOperation
impl StructuralPartialEq for CompositeOperation
Auto Trait Implementations
impl RefUnwindSafe for CompositeOperation
impl Send for CompositeOperation
impl Sync for CompositeOperation
impl Unpin for CompositeOperation
impl UnwindSafe for CompositeOperation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more