Trait lyon_path_builder::PathBuilder
[−]
[src]
pub trait PathBuilder: BaseBuilder { fn quadratic_bezier_to(&mut self, ctrl: Point, to: Point); fn cubic_bezier_to(&mut self, ctrl1: Point, ctrl2: Point, to: Point); fn path_event(&mut self, event: PathEvent) { ... } fn with_svg(self) -> SvgPathBuilder<Self> { ... } }
The main path building interface. More elaborate interfaces are built on top of the provided primitives.
Required Methods
fn quadratic_bezier_to(&mut self, ctrl: Point, to: Point)
fn cubic_bezier_to(&mut self, ctrl1: Point, ctrl2: Point, to: Point)
Provided Methods
fn path_event(&mut self, event: PathEvent)
fn with_svg(self) -> SvgPathBuilder<Self>
Returns a builder that support svg commands.
Implementors
impl<Builder: PathBuilder> PathBuilder for SvgPathBuilder<Builder>
impl<Builder: BaseBuilder> PathBuilder for FlatteningBuilder<Builder>