pub struct PathBuilder { /* private fields */ }Expand description
Fluent builder for constructing vector paths, including SVG path string parsing.
Implementations§
Source§impl PathBuilder
impl PathBuilder
pub fn new() -> Self
pub fn move_to(self, x: f32, y: f32) -> Self
pub fn line_to(self, x: f32, y: f32) -> Self
pub fn quad_to(self, cx: f32, cy: f32, x: f32, y: f32) -> Self
pub fn cubic_to( self, c1x: f32, c1y: f32, c2x: f32, c2y: f32, x: f32, y: f32, ) -> Self
pub fn close(self) -> Self
pub fn fill(self, rule: FillRule) -> Self
pub fn stroke(self, style: StrokeStyle) -> Self
pub fn build(self) -> Path
Trait Implementations§
Auto Trait Implementations§
impl Forget for PathBuilder
impl Freeze for PathBuilder
impl Move for PathBuilder
impl RefUnwindSafe for PathBuilder
impl Send for PathBuilder
impl Sync for PathBuilder
impl Unpin for PathBuilder
impl UnsafeUnpin for PathBuilder
impl UnwindSafe for PathBuilder
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