[][src]Struct raqote::Path

pub struct Path {
    pub ops: Vec<PathOp>,
    pub winding: Winding,
}

Represents a complete path usable for filling or stroking.

Fields

ops: Vec<PathOp>winding: Winding

Methods

impl Path[src]

pub fn flatten(&self, tolerance: f32) -> Path[src]

Flattens self by replacing all QuadTo and CurveTo commands with an appropriate number of LineTo commands so that the error is not greater than tolerance.

pub fn contains_point(&self, tolerance: f32, x: f32, y: f32) -> bool[src]

Returns true if the point x, y is within the filled area of of self. The path will be flattened using tolerance. The point is considered contained if it's on the path.

pub fn transform(self, transform: &Transform) -> Path[src]

Trait Implementations

impl From<Path> for PathBuilder[src]

impl Clone for Path[src]

impl Debug for Path[src]

Auto Trait Implementations

impl Send for Path

impl Sync for Path

impl Unpin for Path

impl UnwindSafe for Path

impl RefUnwindSafe for Path

Blanket Implementations

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

impl<T> From<T> for 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.

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]