[][src]Trait lyon_path::builder::SvgBuilder

pub trait SvgBuilder: PathBuilder {
    fn relative_move_to(&mut self, to: Vector);
fn relative_line_to(&mut self, to: Vector);
fn relative_quadratic_bezier_to(&mut self, ctrl: Vector, to: Vector);
fn relative_cubic_bezier_to(
        &mut self,
        ctrl1: Vector,
        ctrl2: Vector,
        to: Vector
    );
fn smooth_cubic_bezier_to(&mut self, ctrl2: Point, to: Point);
fn smooth_relative_cubic_bezier_to(&mut self, ctrl2: Vector, to: Vector);
fn smooth_quadratic_bezier_to(&mut self, to: Point);
fn smooth_relative_quadratic_bezier_to(&mut self, to: Vector);
fn horizontal_line_to(&mut self, x: f32);
fn relative_horizontal_line_to(&mut self, dx: f32);
fn vertical_line_to(&mut self, y: f32);
fn relative_vertical_line_to(&mut self, dy: f32);
fn arc_to(
        &mut self,
        radii: Vector,
        x_rotation: Angle,
        flags: ArcFlags,
        to: Point
    );
fn relative_arc_to(
        &mut self,
        radii: Vector,
        x_rotation: Angle,
        flags: ArcFlags,
        to: Vector
    ); fn svg_event(&mut self, event: SvgEvent) { ... } }

A path building interface that tries to stay close to SVG's path specification. https://svgwg.org/specs/paths/

Required methods

fn relative_move_to(&mut self, to: Vector)

fn relative_line_to(&mut self, to: Vector)

fn relative_quadratic_bezier_to(&mut self, ctrl: Vector, to: Vector)

fn relative_cubic_bezier_to(&mut self, ctrl1: Vector, ctrl2: Vector, to: Vector)

fn smooth_cubic_bezier_to(&mut self, ctrl2: Point, to: Point)

fn smooth_relative_cubic_bezier_to(&mut self, ctrl2: Vector, to: Vector)

fn smooth_quadratic_bezier_to(&mut self, to: Point)

fn smooth_relative_quadratic_bezier_to(&mut self, to: Vector)

fn horizontal_line_to(&mut self, x: f32)

fn relative_horizontal_line_to(&mut self, dx: f32)

fn vertical_line_to(&mut self, y: f32)

fn relative_vertical_line_to(&mut self, dy: f32)

fn arc_to(
    &mut self,
    radii: Vector,
    x_rotation: Angle,
    flags: ArcFlags,
    to: Point
)

fn relative_arc_to(
    &mut self,
    radii: Vector,
    x_rotation: Angle,
    flags: ArcFlags,
    to: Vector
)

Loading content...

Provided methods

fn svg_event(&mut self, event: SvgEvent)

Loading content...

Implementors

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

Loading content...