pub enum StencilType {
Alpha,
Luminance,
}Expand description
Specifies how the stencil mask is derived from glyphs.
Variants§
Alpha
Uses the alpha channel of the glyphs to control stencil opacity.
Transparent regions contribute less to the mask, while opaque regions contribute more.
Luminance
Uses the luminance (brightness) of the glyphs to control stencil opacity.
Brighter regions contribute more to the mask, regardless of transparency.
Trait Implementations§
Source§impl Clone for StencilType
impl Clone for StencilType
Source§fn clone(&self) -> StencilType
fn clone(&self) -> StencilType
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 StencilType
impl Debug for StencilType
Source§impl Default for StencilType
impl Default for StencilType
Source§fn default() -> StencilType
fn default() -> StencilType
Returns the “default value” for a type. Read more
impl Copy for StencilType
Auto Trait Implementations§
impl Freeze for StencilType
impl RefUnwindSafe for StencilType
impl Send for StencilType
impl Sync for StencilType
impl Unpin for StencilType
impl UnwindSafe for StencilType
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