Trait font_kit::outline::OutlineSink

source ·
pub trait OutlineSink {
    // Required methods
    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);
}
Expand description

Receives Bézier path rendering commands.

Required Methods§

source

fn move_to(&mut self, to: Vector2F)

Moves the pen to a point.

source

fn line_to(&mut self, to: Vector2F)

Draws a line to a point.

source

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

Draws a quadratic Bézier curve to a point.

source

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

Draws a cubic Bézier curve to a point.

source

fn close(&mut self)

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

Implementors§