Struct lyon_path::PathState [−][src]
Represents the current state of a path while it is being built.
Fields
current: Point
The current point.
first: Point
The first point of the current sub-path.
last_ctrl: Point
The last control point.
Methods
impl PathState
[src]
impl PathState
impl PathState
[src]
impl PathState
pub fn svg_event(&mut self, event: SvgEvent)
[src]
pub fn svg_event(&mut self, event: SvgEvent)
pub fn path_event(&mut self, event: PathEvent)
[src]
pub fn path_event(&mut self, event: PathEvent)
pub fn flattened_event(&mut self, event: FlattenedEvent)
[src]
pub fn flattened_event(&mut self, event: FlattenedEvent)
pub fn move_to(&mut self, to: Point)
[src]
pub fn move_to(&mut self, to: Point)
pub fn line_to(&mut self, to: Point)
[src]
pub fn line_to(&mut self, to: Point)
pub fn curve_to(&mut self, ctrl: Point, to: Point)
[src]
pub fn curve_to(&mut self, ctrl: Point, to: Point)
pub fn close(&mut self)
[src]
pub fn close(&mut self)
pub fn next(&mut self, to: Point)
[src]
pub fn next(&mut self, to: Point)
pub fn relative_next(&mut self, to: Vector)
[src]
pub fn relative_next(&mut self, to: Vector)
pub fn get_smooth_ctrl(&self) -> Point
[src]
pub fn get_smooth_ctrl(&self) -> Point
pub fn relative_to_absolute(&self, v: Vector) -> Point
[src]
pub fn relative_to_absolute(&self, v: Vector) -> Point
pub fn svg_to_path_event(&self, event: SvgEvent) -> PathEvent
[src]
pub fn svg_to_path_event(&self, event: SvgEvent) -> PathEvent