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.
Creates a new, empty mask.
Checks that mask is empty.
Sets the current clipping path.
Not additive. Overwrites the previous data.
Path must be transformed beforehand.
Intersects the provided path with the current clipping path.
Path must be transformed beforehand.
Clears the mask.
Internal memory buffer is not deallocated.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.