Skip to main content

UnscaledOutlineSink

Trait UnscaledOutlineSink 

Source
pub trait UnscaledOutlineSink {
    // Required methods
    fn start_contour(&mut self);
    fn point(&mut self, x: i32, y: i32, flags: PointFlags);
    fn end_contour(&mut self);
}
Expand description

Receives the points of an outline in font units, one contour at a time.

Required Methods§

Source

fn start_contour(&mut self)

Begins a contour.

Source

fn point(&mut self, x: i32, y: i32, flags: PointFlags)

Adds a point to the open contour.

flags indicate whether the point is on the curve or is an off-curve control point of a quadratic or cubic curve. The interpreter marker flags are always clear.

Source

fn end_contour(&mut self)

Ends the open contour.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<S: UnscaledOutlineSink + ?Sized> UnscaledOutlineSink for &mut S

Source§

fn start_contour(&mut self)

Source§

fn point(&mut self, x: i32, y: i32, flags: PointFlags)

Source§

fn end_contour(&mut self)

Implementors§