pub struct DrawingPathBuilder(/* private fields */);Expand description
Builder for DrawingPath.
Implementations§
Source§impl DrawingPathBuilder
impl DrawingPathBuilder
Sourcepub fn add_line(&mut self, p: Point) -> Result<()>
pub fn add_line(&mut self, p: Point) -> Result<()>
Line from current point to the target point.
Sourcepub fn add_arc(
&mut self,
center: Point,
radius: Size,
start: f64,
end: f64,
clockwise: bool,
) -> Result<()>
pub fn add_arc( &mut self, center: Point, radius: Size, start: f64, end: f64, clockwise: bool, ) -> Result<()>
Add arc. A line will be created implicitly if the start point is not the current point.
Sourcepub fn add_bezier(&mut self, p1: Point, p2: Point, p3: Point) -> Result<()>
pub fn add_bezier(&mut self, p1: Point, p2: Point, p3: Point) -> Result<()>
Add a cubic Bezier curve.
Sourcepub fn build(self, close: bool) -> Result<DrawingPath>
pub fn build(self, close: bool) -> Result<DrawingPath>
Build DrawingPath.
Auto Trait Implementations§
impl Freeze for DrawingPathBuilder
impl RefUnwindSafe for DrawingPathBuilder
impl !Send for DrawingPathBuilder
impl !Sync for DrawingPathBuilder
impl Unpin for DrawingPathBuilder
impl UnsafeUnpin for DrawingPathBuilder
impl UnwindSafe for DrawingPathBuilder
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