Struct lyon::path_iterator::PathState
[−]
[src]
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
[src]
impl PathState
[src]
fn svg_event(&mut self, event: SvgEvent)
[src]
fn path_event(&mut self, event: PathEvent)
[src]
fn flattened_event(&mut self, event: FlattenedEvent)
[src]
fn move_to(&mut self, to: TypedPoint2D<f32, UnknownUnit>)
[src]
fn line_to(&mut self, to: TypedPoint2D<f32, UnknownUnit>)
[src]
fn curve_to(
&mut self,
ctrl: TypedPoint2D<f32, UnknownUnit>,
to: TypedPoint2D<f32, UnknownUnit>
)
[src]
&mut self,
ctrl: TypedPoint2D<f32, UnknownUnit>,
to: TypedPoint2D<f32, UnknownUnit>
)
fn close(&mut self)
[src]
fn next(&mut self, to: TypedPoint2D<f32, UnknownUnit>)
[src]
fn relative_next(&mut self, to: TypedVector2D<f32, UnknownUnit>)
[src]
fn get_smooth_ctrl(&self) -> TypedPoint2D<f32, UnknownUnit>
[src]
fn from_relative(
&self,
v: TypedVector2D<f32, UnknownUnit>
) -> TypedPoint2D<f32, UnknownUnit>
[src]
&self,
v: TypedVector2D<f32, UnknownUnit>
) -> TypedPoint2D<f32, UnknownUnit>