[][src]Enum femtovg::CompositeOperation

pub enum CompositeOperation {
    SourceOver,
    SourceIn,
    SourceOut,
    Atop,
    DestinationOver,
    DestinationIn,
    DestinationOut,
    DestinationAtop,
    Lighter,
    Copy,
    Xor,
}

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

impl Clone for CompositeOperation[src]

impl Copy for CompositeOperation[src]

impl Debug for CompositeOperation[src]

impl Eq for CompositeOperation[src]

impl Hash for CompositeOperation[src]

impl PartialEq<CompositeOperation> for CompositeOperation[src]

impl PartialOrd<CompositeOperation> for CompositeOperation[src]

impl StructuralEq for CompositeOperation[src]

impl StructuralPartialEq for CompositeOperation[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.