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