[][src]Struct lyon_path::PathState

pub struct PathState {
    pub current: Point,
    pub first: Point,
    pub last_ctrl: Point,
}

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]

pub fn new() -> Self[src]

impl PathState[src]

pub fn svg_event(&mut self, event: SvgEvent)[src]

pub fn path_event(&mut self, event: PathEvent)[src]

pub fn flattened_event(&mut self, event: FlattenedEvent)[src]

pub fn move_to(&mut self, to: Point)[src]

pub fn line_to(&mut self, to: Point)[src]

pub fn curve_to(&mut self, ctrl: Point, to: Point)[src]

pub fn close(&mut self)[src]

pub fn next(&mut self, to: Point)[src]

pub fn relative_next(&mut self, to: Vector)[src]

pub fn get_smooth_ctrl(&self) -> Point[src]

pub fn relative_to_absolute(&self, v: Vector) -> Point[src]

pub fn svg_to_path_event(&self, event: SvgEvent) -> PathEvent[src]

Auto Trait Implementations

impl Unpin for PathState

impl Sync for PathState

impl Send for PathState

impl UnwindSafe for PathState

impl RefUnwindSafe for PathState

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]