pub struct BlendMode {
pub mix: Mix,
pub compose: Compose,
}Expand description
Blend mode consisting of color mixing and composition functions.
Fields§
§mix: MixThe color mixing function.
compose: ComposeThe layer composition function.
Implementations§
Source§impl BlendMode
impl BlendMode
Sourcepub const fn new(mix: Mix, compose: Compose) -> Self
pub const fn new(mix: Mix, compose: Compose) -> Self
Creates a new blend mode from color mixing and layer composition functions.
Sourcepub const fn is_destructive(&self) -> bool
pub const fn is_destructive(&self) -> bool
Returns whether this blend mode might cause destructive changes in the backdrop.
Destructive blend modes disallow certain optimizations, such as skipping transparent paints.
Trait Implementations§
impl Copy for BlendMode
impl Eq for BlendMode
impl StructuralPartialEq for BlendMode
Auto Trait Implementations§
impl Freeze for BlendMode
impl RefUnwindSafe for BlendMode
impl Send for BlendMode
impl Sync for BlendMode
impl Unpin for BlendMode
impl UnsafeUnpin for BlendMode
impl UnwindSafe for BlendMode
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