1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
#![doc(html_logo_url = "https://nical.github.io/lyon-doc/lyon-logo.svg")] //! # Lyon path //! //! A simple path data structure implementing the traits provided in the //! [builder](builder/index.html) and //! [iterator](iterator/index.html) modules. //! //! # Examples //! //! ``` //! # extern crate lyon_path; //! # fn main() { //! use lyon_path::default::Path; //! use lyon_path::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); //! } //! # } //! ``` //! pub extern crate lyon_geom as geom; mod events; mod path_state; pub mod default; pub mod iterator; pub mod builder; pub mod walk; pub use events::*; pub use path_state::*; pub use geom::ArcFlags; pub use geom::math as math;