pub struct CompositeAlphas(/* private fields */);Expand description
A set of CompositeAlpha values.
Implementations§
Source§impl CompositeAlphas
impl CompositeAlphas
Sourcepub const OPAQUE: Self
pub const OPAQUE: Self
The alpha channel of the image is ignored. All the pixels are considered as if they have a value of 1.0.
Sourcepub const PRE_MULTIPLIED: Self
pub const PRE_MULTIPLIED: Self
The alpha channel of the image is respected. The color channels are expected to have already been multiplied by the alpha value.
Sourcepub const POST_MULTIPLIED: Self
pub const POST_MULTIPLIED: Self
The alpha channel of the image is respected. The color channels will be multiplied by the alpha value by the compositor before being added to what is behind.
Sourcepub const fn intersects(self, other: Self) -> bool
pub const fn intersects(self, other: Self) -> bool
Returns whether any flags are set in both self and other.
Sourcepub const fn contains(self, other: Self) -> bool
pub const fn contains(self, other: Self) -> bool
Returns whether all flags in other are set in self.
Sourcepub const fn intersection(self, other: Self) -> Self
pub const fn intersection(self, other: Self) -> Self
Returns the intersection of self and other.
Sourcepub const fn difference(self, other: Self) -> Self
pub const fn difference(self, other: Self) -> Self
Returns self without the flags set in other.
Sourcepub const fn symmetric_difference(self, other: Self) -> Self
pub const fn symmetric_difference(self, other: Self) -> Self
Returns the flags that are set in self or other, but not in both.
Sourcepub fn contains_enum(self, val: CompositeAlpha) -> bool
pub fn contains_enum(self, val: CompositeAlpha) -> bool
Returns whether self contains the flag corresponding to val.
Trait Implementations§
Source§impl BitAnd for CompositeAlphas
impl BitAnd for CompositeAlphas
Source§impl BitAndAssign for CompositeAlphas
impl BitAndAssign for CompositeAlphas
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&= operation. Read moreSource§impl BitOr for CompositeAlphas
impl BitOr for CompositeAlphas
Source§impl BitOrAssign for CompositeAlphas
impl BitOrAssign for CompositeAlphas
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreSource§impl BitXor for CompositeAlphas
impl BitXor for CompositeAlphas
Source§impl BitXorAssign for CompositeAlphas
impl BitXorAssign for CompositeAlphas
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^= operation. Read moreSource§impl Clone for CompositeAlphas
impl Clone for CompositeAlphas
Source§fn clone(&self) -> CompositeAlphas
fn clone(&self) -> CompositeAlphas
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 CompositeAlphas
impl Debug for CompositeAlphas
Source§impl Default for CompositeAlphas
impl Default for CompositeAlphas
Source§impl From<CompositeAlpha> for CompositeAlphas
impl From<CompositeAlpha> for CompositeAlphas
Source§fn from(val: CompositeAlpha) -> Self
fn from(val: CompositeAlpha) -> Self
Converts to this type from the input type.
Source§impl From<CompositeAlphaFlagsKHR> for CompositeAlphas
impl From<CompositeAlphaFlagsKHR> for CompositeAlphas
Source§fn from(val: CompositeAlphaFlagsKHR) -> Self
fn from(val: CompositeAlphaFlagsKHR) -> Self
Converts to this type from the input type.
Source§impl From<CompositeAlphas> for CompositeAlphaFlagsKHR
impl From<CompositeAlphas> for CompositeAlphaFlagsKHR
Source§fn from(val: CompositeAlphas) -> Self
fn from(val: CompositeAlphas) -> Self
Converts to this type from the input type.
Source§impl FromIterator<CompositeAlpha> for CompositeAlphas
impl FromIterator<CompositeAlpha> for CompositeAlphas
Source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = CompositeAlpha>,
fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = CompositeAlpha>,
Creates a value from an iterator. Read more
Source§impl Hash for CompositeAlphas
impl Hash for CompositeAlphas
Source§impl IntoIterator for CompositeAlphas
impl IntoIterator for CompositeAlphas
Source§type Item = CompositeAlpha
type Item = CompositeAlpha
The type of the elements being iterated over.
Source§type IntoIter = Flatten<IntoIter<Option<<CompositeAlphas as IntoIterator>::Item>, { $ty_bitflags::all_raw().count_ones() as usize }>>
type IntoIter = Flatten<IntoIter<Option<<CompositeAlphas as IntoIterator>::Item>, { $ty_bitflags::all_raw().count_ones() as usize }>>
Which kind of iterator are we turning this into?
Source§impl PartialEq for CompositeAlphas
impl PartialEq for CompositeAlphas
Source§impl Sub for CompositeAlphas
impl Sub for CompositeAlphas
Source§impl SubAssign for CompositeAlphas
impl SubAssign for CompositeAlphas
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-= operation. Read moreimpl Copy for CompositeAlphas
impl Eq for CompositeAlphas
impl StructuralPartialEq for CompositeAlphas
Auto Trait Implementations§
impl Freeze for CompositeAlphas
impl RefUnwindSafe for CompositeAlphas
impl Send for CompositeAlphas
impl Sync for CompositeAlphas
impl Unpin for CompositeAlphas
impl UnsafeUnpin for CompositeAlphas
impl UnwindSafe for CompositeAlphas
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