Enum gfx_hal::window::CompositeAlpha
source · #[repr(C)]
pub enum CompositeAlpha {
Opaque,
PreMultiplied,
PostMultiplied,
Inherit,
}
Expand description
Specifies the composition of the swapchain with regards to alpha component.
Variants
Opaque
Ignore alpha and treat it as 1.0 at all times.
PreMultiplied
Use the alpha, expect the color to already be multiplied by it.
PostMultiplied
Use the alpha, let the compositor multiply the color by it.
Inherit
Default to native system settings.
Trait Implementations
sourceimpl Clone for CompositeAlpha
impl Clone for CompositeAlpha
sourcefn clone(&self) -> CompositeAlpha
fn clone(&self) -> CompositeAlpha
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 moresourceimpl Debug for CompositeAlpha
impl Debug for CompositeAlpha
sourceimpl Hash for CompositeAlpha
impl Hash for CompositeAlpha
sourceimpl PartialEq<CompositeAlpha> for CompositeAlpha
impl PartialEq<CompositeAlpha> for CompositeAlpha
sourcefn eq(&self, other: &CompositeAlpha) -> bool
fn eq(&self, other: &CompositeAlpha) -> bool
impl Copy for CompositeAlpha
impl Eq for CompositeAlpha
impl StructuralEq for CompositeAlpha
impl StructuralPartialEq for CompositeAlpha
Auto Trait Implementations
impl RefUnwindSafe for CompositeAlpha
impl Send for CompositeAlpha
impl Sync for CompositeAlpha
impl Unpin for CompositeAlpha
impl UnwindSafe for CompositeAlpha
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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