[−][src]Struct nanachi::path::Path
Path for filling and stroking.
A path can contains lines, ellipse arcs, quadratic bezier curves and cubic bezier curves.
You should use [PathBuilder
] for creating a path.
Implementations
impl Path
[src]
pub fn new(items: Vec<PathItem>) -> Path
[src]
Create Path
.
pub fn merge(&mut self, rhs: &Path)
[src]
Merge 2 paths.
pub fn from_points(points: &Vec<Point>, close: bool) -> Path
[src]
Create Path
from Vec<Point>
.
pub fn from_bezier2_points(points: &Vec<Point>) -> Path
[src]
Create Path
as a bezire curves from Vec<Point>
.
pub fn as_points_list(&self) -> Option<Vec<Vec<Point>>>
[src]
pub fn continuations<'a>(&'a self) -> Vec<(&'a [PathItem], bool)>
[src]
Get continuous PathItem
s in the path.
pub fn flip(&self) -> Path
[src]
Flip path direction.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Path
impl Send for Path
impl Sync for Path
impl Unpin for Path
impl UnwindSafe for Path
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
pub fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut 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.
pub 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>,