[][src]Enum bedrock::DisplayPlaneAlpha

#[repr(u32)]
pub enum DisplayPlaneAlpha {
    Opaque,
    Global,
    PerPixel,
    PrePixelPremultiplied,
}

Alpha blending type

Variants

Opaque

The source image will be treated as opaque

Global

A global alpha value must be specified that will be applied to all pixels in the source image

PerPixel

The alpha value will be determined by the alpha channel of the source image's pixels. If the source format contains no alpha values, no blending will be applied. The source alpha values are not premultiplied into the source image's other color channels

PrePixelPremultiplied

This is equivalent to PerPixel except the source alpha values are assumed to be premultiplied into the source image's other color channels

Trait Implementations

impl Clone for DisplayPlaneAlpha[src]

impl Copy for DisplayPlaneAlpha[src]

impl Debug for DisplayPlaneAlpha[src]

impl Eq for DisplayPlaneAlpha[src]

impl PartialEq<DisplayPlaneAlpha> for DisplayPlaneAlpha[src]

impl StructuralEq for DisplayPlaneAlpha[src]

impl StructuralPartialEq for DisplayPlaneAlpha[src]

Auto Trait Implementations

impl RefUnwindSafe for DisplayPlaneAlpha

impl Send for DisplayPlaneAlpha

impl Sync for DisplayPlaneAlpha

impl Unpin for DisplayPlaneAlpha

impl UnwindSafe for DisplayPlaneAlpha

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.