pub struct Path { /* private fields */ }Expand description
A shared retained vector path released when its final clone drops.
Implementations§
Source§impl Path
impl Path
Sourcepub fn quad_to(&mut self, cx: f32, cy: f32, x: f32, y: f32) -> &mut Self
pub fn quad_to(&mut self, cx: f32, cy: f32, x: f32, y: f32) -> &mut Self
Adds a quadratic Bezier segment.
Sourcepub fn cubic_to(
&mut self,
cx1: f32,
cy1: f32,
cx2: f32,
cy2: f32,
x: f32,
y: f32,
) -> &mut Self
pub fn cubic_to( &mut self, cx1: f32, cy1: f32, cx2: f32, cy2: f32, x: f32, y: f32, ) -> &mut Self
Adds a cubic Bezier segment.
Sourcepub fn add_rect(&mut self, x: f32, y: f32, w: f32, h: f32) -> &mut Self
pub fn add_rect(&mut self, x: f32, y: f32, w: f32, h: f32) -> &mut Self
Adds an axis-aligned rectangle.
Sourcepub fn add_circle(&mut self, cx: f32, cy: f32, r: f32) -> &mut Self
pub fn add_circle(&mut self, cx: f32, cy: f32, r: f32) -> &mut Self
Adds a circle.
Trait Implementations§
Auto Trait Implementations§
impl !Send for Path
impl !Sync for Path
impl Freeze for Path
impl RefUnwindSafe for Path
impl Unpin for Path
impl UnsafeUnpin for Path
impl UnwindSafe for Path
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