[−][src]Struct nanachi::path_builder::PathBuilder
Path builder.
Implementations
impl PathBuilder
[src]
pub fn new() -> PathBuilder
[src]
Create PathBuilder
.
pub fn move_to(&mut self, x: f64, y: f64)
[src]
Set current position.
pub fn line_to(&mut self, x: f64, y: f64)
[src]
Add a segment that from current position to specified position. And then set the end position to current position.
pub fn arc(&mut self, x: f64, y: f64, radius: f64, angle1: f64, angle2: f64)
[src]
Add an arc.
pub fn ellipse(
&mut self,
x: f64,
y: f64,
radius_x: f64,
radius_y: f64,
rotation: f64,
angle1: f64,
angle2: f64
)
[src]
&mut self,
x: f64,
y: f64,
radius_x: f64,
radius_y: f64,
rotation: f64,
angle1: f64,
angle2: f64
)
Add an ellipse.
pub fn ellipse_from_endpoint(
&mut self,
radius_x: f64,
radius_y: f64,
rotation: f64,
large: bool,
clockwise: bool,
x: f64,
y: f64
)
[src]
&mut self,
radius_x: f64,
radius_y: f64,
rotation: f64,
large: bool,
clockwise: bool,
x: f64,
y: f64
)
Add an endpoint-parameterized ellipse.
pub fn quad(&mut self, control_x: f64, control_y: f64, x: f64, y: f64)
[src]
Add a quadratic bezier curve.
pub fn cubic(
&mut self,
control_x1: f64,
control_y1: f64,
control_x2: f64,
control_y2: f64,
x: f64,
y: f64
)
[src]
&mut self,
control_x1: f64,
control_y1: f64,
control_x2: f64,
control_y2: f64,
x: f64,
y: f64
)
Add a cubic bezier curve.
pub fn close(&mut self)
[src]
Close the path.
pub fn end(&mut self) -> Path
[src]
Return the built Path.
pub fn current_pos(&self) -> Option<(f64, f64)>
[src]
Return current position.
Trait Implementations
impl Clone for PathBuilder
[src]
pub fn clone(&self) -> PathBuilder
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PathBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for PathBuilder
impl Send for PathBuilder
impl Sync for PathBuilder
impl Unpin for PathBuilder
impl UnwindSafe for PathBuilder
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>,