pub enum MaterialAlphaMode {
Opaque,
Mask,
Blend,
}
Expand description
The alpha rendering mode of the material.
Variants§
Opaque
The alpha value is ignored and the rendered output is fully opaque.
Mask
The rendered output is either fully opaque or fully transparent depending on the alpha value and the specified alpha cutoff value.
Blend
The alpha value is used to composite the source and destination areas. The rendered output is combined with the background using the normal painting operation (i.e. the Porter and Duff over operator).
Trait Implementations§
Source§impl Clone for MaterialAlphaMode
impl Clone for MaterialAlphaMode
Source§fn clone(&self) -> MaterialAlphaMode
fn clone(&self) -> MaterialAlphaMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MaterialAlphaMode
impl Debug for MaterialAlphaMode
Source§impl<'a> Deserialize<'a> for MaterialAlphaMode
impl<'a> Deserialize<'a> for MaterialAlphaMode
fn deserialize<D: Deserializer<'a>>(deserializer: &mut D) -> Option<Self>
Source§impl Serialize for MaterialAlphaMode
impl Serialize for MaterialAlphaMode
fn serialize<S: Serializer>(&self, serializer: &mut S)
Auto Trait Implementations§
impl Freeze for MaterialAlphaMode
impl RefUnwindSafe for MaterialAlphaMode
impl Send for MaterialAlphaMode
impl Sync for MaterialAlphaMode
impl Unpin for MaterialAlphaMode
impl UnwindSafe for MaterialAlphaMode
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
Mutably borrows from an owned value. Read more