Struct lyon_algorithms::walk::PathWalker [−][src]
pub struct PathWalker<'l> { /* fields omitted */ }
A helper struct to walk along a flattened path using a builder API.
Methods
impl<'l> PathWalker<'l>
[src]
impl<'l> PathWalker<'l>
pub fn new(start: f32, pattern: &'l mut Pattern) -> PathWalker<'l>
[src]
pub fn new(start: f32, pattern: &'l mut Pattern) -> PathWalker<'l>
Trait Implementations
impl<'l> FlatPathBuilder for PathWalker<'l>
[src]
impl<'l> FlatPathBuilder for PathWalker<'l>
type PathType = ()
The type of object that is created by this builder.
fn move_to(&mut self, to: Point)
[src]
fn move_to(&mut self, to: Point)
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. Read more
fn line_to(&mut self, to: Point)
[src]
fn line_to(&mut self, to: Point)
Adds a line segment to the current sub-path and set the current position.
fn close(&mut self)
[src]
fn close(&mut self)
Closes the current sub path and sets the current position to the first position of this the current sub-path. Read more
fn build(self)
[src]
fn build(self)
Builds a path object and resets the builder so that it can be used again.
fn build_and_reset(&mut self)
[src]
fn build_and_reset(&mut self)
Builds a path object and resets the builder so that it can be used again.
fn current_position(&self) -> Point
[src]
fn current_position(&self) -> Point
fn flat_event(&mut self, event: FlattenedEvent)
[src]
fn flat_event(&mut self, event: FlattenedEvent)
fn flattened(self, tolerance: f32) -> FlatteningBuilder<Self>
[src]
fn flattened(self, tolerance: f32) -> FlatteningBuilder<Self>
Returns a builder that approximates all curves with sequences of line segments.
Auto Trait Implementations
impl<'l> !Send for PathWalker<'l>
impl<'l> !Send for PathWalker<'l>
impl<'l> !Sync for PathWalker<'l>
impl<'l> !Sync for PathWalker<'l>