Trait lyon_path_builder::FlatPathBuilder [] [src]

pub trait FlatPathBuilder: Sized {
    type PathType;
    fn move_to(&mut self, to: Point);
fn line_to(&mut self, to: Point);
fn close(&mut self);
fn build(self) -> Self::PathType;
fn build_and_reset(&mut self) -> Self::PathType;
fn current_position(&self) -> Point; fn flat_event(&mut self, event: FlattenedEvent) { ... }
fn flattened(self, tolerance: f32) -> FlatteningBuilder<Self> { ... } }

The most basic path building interface. Does not handle any kind of curve.

Associated Types

The type of object that is created by this builder.

Required Methods

Sets the current position in preparation for the next sub-path. If the current sub-path contains edges, this ends the sub-path without closing it.

Adds a line segment to the current sub-path and set the current position.

Closes the current sub path and sets the current position to the first position of this the current sub-path.

Subsequent commands will affect the next sub-path.

Builds a path object and resets the builder so that it can be used again.

Builds a path object and resets the builder so that it can be used again.

Provided Methods

Returns a builder that approximates all curves with sequences of line segments.

Implementors