[][src]Struct lyon_path::PathState

pub struct PathState { /* fields omitted */ }

Represents the current state of a path while it is being built.

Methods

impl PathState[src]

pub fn new() -> Self[src]

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

The current position.

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

The position at the start of the current sub-path.

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

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

pub fn close(&mut self)[src]

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

pub fn cubic_bezier_to(&mut self, _ctrl1: Point, ctrl2: Point, to: Point)[src]

pub fn arc(
    &mut self,
    center: Point,
    radii: Vector,
    sweep_angle: Angle,
    x_rotation: Angle
)
[src]

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

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

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

Trait Implementations

impl FlatPathBuilder for PathState[src]

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

fn flattened(self, tolerance: f32) -> FlatteningBuilder<Self> where
    Self: Sized
[src]

Returns a builder that approximates all curves with sequences of line segments.

impl PathBuilder for PathState[src]

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

fn with_svg(self) -> SvgPathBuilder<Self> where
    Self: Sized
[src]

Returns a builder that support svg commands.

impl SvgBuilder for PathState[src]

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

impl PolygonBuilder for PathState[src]

impl PartialEq<PathState> for PathState[src]

impl Clone for PathState[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for PathState[src]

impl Debug for PathState[src]

Auto Trait Implementations

impl Send for PathState

impl Sync for PathState

Blanket Implementations

impl<T> From for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.