[][src]Trait lyon_path::builder::PathBuilder

pub trait PathBuilder: FlatPathBuilder {
    fn quadratic_bezier_to(&mut self, ctrl: Point, to: Point);
fn cubic_bezier_to(&mut self, ctrl1: Point, ctrl2: Point, to: Point);
fn arc(
        &mut self,
        center: Point,
        radii: Vector,
        sweep_angle: Angle,
        x_rotation: Angle
    ); 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)

fn arc(
    &mut self,
    center: Point,
    radii: Vector,
    sweep_angle: Angle,
    x_rotation: Angle
)

Loading content...

Provided methods

fn path_event(&mut self, event: PathEvent)

fn with_svg(self) -> SvgPathBuilder<Self>

Returns a builder that support svg commands.

Loading content...

Implementors

impl PathBuilder for Builder[src]

impl<Builder: FlatPathBuilder> PathBuilder for FlatteningBuilder<Builder>[src]

impl<Builder: PathBuilder> PathBuilder for SvgPathBuilder<Builder>[src]

Loading content...