pub struct SoftMask<'a>(/* private fields */);Expand description
A soft mask.
Implementations§
Source§impl<'a> SoftMask<'a>
impl<'a> SoftMask<'a>
Sourcepub fn interpret(&self, device: &mut impl Device<'a>)
pub fn interpret(&self, device: &mut impl Device<'a>)
Interpret the contents of the mask into the given device.
Sourcepub fn id(&self) -> ObjectIdentifier
pub fn id(&self) -> ObjectIdentifier
Return the object identifier of the mask.
This can be used as a unique identifier for caching purposes.
Sourcepub fn background_color(&self) -> Color
pub fn background_color(&self) -> Color
The background color against which the mask should be composited.
Sourcepub fn transfer_function(&self) -> Option<&TransferFunction>
pub fn transfer_function(&self) -> Option<&TransferFunction>
Return the transfer function that should be used for the mask.
Trait Implementations§
impl Eq for SoftMask<'_>
Auto Trait Implementations§
impl<'a> Freeze for SoftMask<'a>
impl<'a> !RefUnwindSafe for SoftMask<'a>
impl<'a> Send for SoftMask<'a>
impl<'a> Sync for SoftMask<'a>
impl<'a> Unpin for SoftMask<'a>
impl<'a> !UnwindSafe for SoftMask<'a>
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