[−][src]Struct pathfinder_canvas::Path2D
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]
&mut self,
ctrl0: Vector2F,
ctrl1: Vector2F,
to: Vector2F
)
pub fn arc(
&mut self,
center: Vector2F,
radius: f32,
start_angle: f32,
end_angle: f32,
direction: ArcDirection
)
[src]
&mut self,
center: Vector2F,
radius: f32,
start_angle: f32,
end_angle: f32,
direction: ArcDirection
)
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]
&mut self,
center: Vector2F,
axes: A,
rotation: f32,
start_angle: f32,
end_angle: f32
) where
A: IntoVector2F,
pub fn add_path(&mut self, path: Path2D, transform: &Transform2F)
[src]
pub fn into_outline(self) -> Outline
[src]
Trait Implementations
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]
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,
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> 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, 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>,