pub struct EdgeClipper {
clip: Rect,
can_cull_to_the_right: bool,
edges: ArrayVec<PathEdge, MAX_VERBS>,
}Fields§
§clip: Rect§can_cull_to_the_right: bool§edges: ArrayVec<PathEdge, MAX_VERBS>Implementations§
Source§impl EdgeClipper
impl EdgeClipper
fn new(clip: Rect, can_cull_to_the_right: bool) -> Self
fn clip_line( self, p0: Point, p1: Point, ) -> Option<ArrayVec<PathEdge, MAX_VERBS>>
fn push_line(&mut self, p0: Point, p1: Point)
fn push_vline(&mut self, x: f32, y0: f32, y1: f32, reverse: bool)
fn clip_quad( self, p0: Point, p1: Point, p2: Point, ) -> Option<ArrayVec<PathEdge, MAX_VERBS>>
fn clip_mono_quad(&mut self, src: &[Point; 3])
fn push_quad(&mut self, pts: &[Point; 3], reverse: bool)
fn clip_cubic( self, p0: Point, p1: Point, p2: Point, p3: Point, ) -> Option<ArrayVec<PathEdge, MAX_VERBS>>
fn clip_mono_cubic(&mut self, src: &[Point; 4])
fn push_cubic(&mut self, pts: &[Point; 4], reverse: bool)
Auto Trait Implementations§
impl Freeze for EdgeClipper
impl RefUnwindSafe for EdgeClipper
impl Send for EdgeClipper
impl Sync for EdgeClipper
impl Unpin for EdgeClipper
impl UnsafeUnpin for EdgeClipper
impl UnwindSafe for EdgeClipper
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