[][src]Struct pathfinder_canvas::Path2D

pub struct Path2D { /* fields omitted */ }

Methods

impl Path2D[src]

pub fn new() -> Path2D[src]

pub fn close_path(&mut self)[src]

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

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

pub fn quadratic_curve_to(&mut self, ctrl: Vector2F, to: Vector2F)[src]

pub fn bezier_curve_to(
    &mut self,
    ctrl0: Vector2F,
    ctrl1: Vector2F,
    to: Vector2F
)
[src]

pub fn arc(
    &mut self,
    center: Vector2F,
    radius: f32,
    start_angle: f32,
    end_angle: f32,
    direction: ArcDirection
)
[src]

pub fn arc_to(&mut self, ctrl: Vector2F, to: Vector2F, radius: f32)[src]

pub fn rect(&mut self, rect: RectF)[src]

pub fn ellipse<A>(
    &mut self,
    center: Vector2F,
    axes: A,
    rotation: f32,
    start_angle: f32,
    end_angle: f32
) where
    A: IntoVector2F
[src]

pub fn add_path(&mut self, path: Path2D, transform: &Transform2F)[src]

pub fn into_outline(self) -> Outline[src]

Trait Implementations

impl Clone for Path2D[src]

impl Debug for Path2D[src]

Auto Trait Implementations

impl RefUnwindSafe for Path2D

impl Send for Path2D

impl Sync for Path2D

impl Unpin for Path2D

impl UnwindSafe for Path2D

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.