pub struct ClipContext {
storage: StripStorage,
temp_storage: StripStorage,
clip_stack: Vec<ClipData>,
}Expand description
A context for managing clip stacks.
Fields§
§storage: StripStorage§temp_storage: StripStorage§clip_stack: Vec<ClipData>Implementations§
Source§impl ClipContext
impl ClipContext
Sourcepub fn get(&self) -> Option<PathDataRef<'_>>
pub fn get(&self) -> Option<PathDataRef<'_>>
Get the data of the current clip path.
Sourcepub fn push_clip(
&mut self,
clip_path: impl IntoIterator<Item = PathEl>,
strip_generator: &mut StripGenerator,
fill_rule: Fill,
transform: Affine,
aliasing_threshold: Option<u8>,
)
pub fn push_clip( &mut self, clip_path: impl IntoIterator<Item = PathEl>, strip_generator: &mut StripGenerator, fill_rule: Fill, transform: Affine, aliasing_threshold: Option<u8>, )
Push a new clip path to the stack.
Trait Implementations§
Source§impl Debug for ClipContext
impl Debug for ClipContext
Auto Trait Implementations§
impl Freeze for ClipContext
impl RefUnwindSafe for ClipContext
impl Send for ClipContext
impl Sync for ClipContext
impl Unpin for ClipContext
impl UnsafeUnpin for ClipContext
impl UnwindSafe for ClipContext
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