Module lyon::path
[−]
[src]
Lyon path
A simple path data structure implementing the traits provided in the lyon_path_builder and lyon_path_iterator modules.
Examples
use lyon_path::Path; use lyon_core::math::{point}; use lyon_path_builder::*; // Create a builder object to build the path. let mut builder = Path::builder(); // Build a simple path. let mut builder = Path::builder(); builder.move_to(point(0.0, 0.0)); builder.line_to(point(1.0, 2.0)); builder.line_to(point(2.0, 0.0)); builder.line_to(point(1.0, 1.0)); builder.close(); // Generate the actual path object. let path = builder.build(); for event in &path { println!("{:?}", event); }
Structs
Builder |
Builds path object using the FlatPathBuilder interface. |
Iter | |
Path |
A simple path data structure. |
PathSlice |
Enums
Verb |
Enumeration corresponding to the PathEvent enum without the parameters. |
Functions
flattened_path_builder |
FlattenedPathBuilder constructor. |
Type Definitions
FlattenedPathBuilder |
Builder for flattened paths |