Struct rasterize::PathBuilder [−][src]
pub struct PathBuilder { /* fields omitted */ }
Expand description
Path builder similar to Canvas/Cairo interface.
Implementations
pub fn append_svg_path(
&mut self,
string: impl AsRef<[u8]>
) -> Result<&mut Self, SvgPathParserError>
pub fn append_svg_path(
&mut self,
string: impl AsRef<[u8]>
) -> Result<&mut Self, SvgPathParserError>
Extend path from string, which is specified in the same format as SVGs path element.
Move current position, ending current subpath
Add line from the current position to the specified point
Add quadratic bezier curve
Add smooth quadratic bezier curve
Add cubic beizer curve
Add smooth cubic bezier curve
Add elliptic arc segment
Add circle with the center at current position and provided radius.
Current position is not changed after invocation.
Add box with rounded corners, with current position being low-x and low-y coordinate
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PathBuilder
impl Send for PathBuilder
impl Sync for PathBuilder
impl Unpin for PathBuilder
impl UnwindSafe for PathBuilder
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more