[−][src]Struct raqote::Path
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
Trait Implementations
Auto Trait Implementations
impl Sync for Path
impl Send 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]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,