[][src]Trait font_kit::outline::OutlineSink

pub trait OutlineSink {
    fn move_to(&mut self, to: Vector2F);
fn line_to(&mut self, to: Vector2F);
fn quadratic_curve_to(&mut self, ctrl: Vector2F, to: Vector2F);
fn cubic_curve_to(&mut self, ctrl: LineSegment2F, to: Vector2F);
fn close(&mut self); }

Receives Bézier path rendering commands.

Required methods

fn move_to(&mut self, to: Vector2F)

Moves the pen to a point.

fn line_to(&mut self, to: Vector2F)

Draws a line to a point.

fn quadratic_curve_to(&mut self, ctrl: Vector2F, to: Vector2F)

Draws a quadratic Bézier curve to a point.

fn cubic_curve_to(&mut self, ctrl: LineSegment2F, to: Vector2F)

Draws a cubic Bézier curve to a point.

fn close(&mut self)

Closes the path, returning to the first point in it.

Loading content...

Implementors

impl OutlineSink for OutlineBuilder[src]

Loading content...