pub struct ClipMask { /* private fields */ }
Expand description
A clipping mask.
Unlike Skia, we’re using just a simple 8bit alpha mask. It’s way slower, but times easier to implement.
Implementations
sourceimpl ClipMask
impl ClipMask
sourcepub fn set_path(
&mut self,
width: u32,
height: u32,
path: &Path,
fill_rule: FillRule,
anti_alias: bool
) -> Option<()>
pub fn set_path(
&mut self,
width: u32,
height: u32,
path: &Path,
fill_rule: FillRule,
anti_alias: bool
) -> Option<()>
Sets the current clipping path.
Not additive. Overwrites the previous data.
Path must be transformed beforehand.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ClipMask
impl Send for ClipMask
impl Sync for ClipMask
impl Unpin for ClipMask
impl UnwindSafe for ClipMask
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more