[−][src]Struct lyon_path::PathState
Represents the current state of a path while it is being built.
Methods
impl PathState
[src]
pub fn new() -> Self
[src]
pub fn current_position(&self) -> Point
[src]
The current position.
pub fn start_position(&self) -> Point
[src]
The position at the start of the current sub-path.
pub fn move_to(&mut self, to: Point)
[src]
pub fn line_to(&mut self, to: Point)
[src]
pub fn close(&mut self)
[src]
pub fn quadratic_bezier_to(&mut self, ctrl: Point, to: Point)
[src]
pub fn cubic_bezier_to(&mut self, _ctrl1: Point, ctrl2: Point, to: Point)
[src]
pub fn arc(
&mut self,
center: Point,
radii: Vector,
sweep_angle: Angle,
x_rotation: Angle
)
[src]
&mut self,
center: Point,
radii: Vector,
sweep_angle: Angle,
x_rotation: Angle
)
pub fn get_smooth_cubic_ctrl(&self) -> Point
[src]
pub fn get_smooth_quadratic_ctrl(&self) -> Point
[src]
pub fn relative_to_absolute(&self, v: Vector) -> Point
[src]
Trait Implementations
impl Clone for PathState
[src]
impl Copy for PathState
[src]
impl Debug for PathState
[src]
impl FlatPathBuilder for PathState
[src]
fn move_to(&mut self, to: Point)
[src]
fn line_to(&mut self, to: Point)
[src]
fn close(&mut self)
[src]
fn current_position(&self) -> Point
[src]
fn flattened(self, tolerance: f32) -> FlatteningBuilder<Self> where
Self: Sized,
[src]
Self: Sized,
impl PartialEq<PathState> for PathState
[src]
impl PathBuilder for PathState
[src]
fn quadratic_bezier_to(&mut self, ctrl: Point, to: Point)
[src]
fn cubic_bezier_to(&mut self, ctrl1: Point, ctrl2: Point, to: Point)
[src]
fn arc(
&mut self,
center: Point,
radii: Vector,
sweep_angle: Angle,
x_rotation: Angle
)
[src]
&mut self,
center: Point,
radii: Vector,
sweep_angle: Angle,
x_rotation: Angle
)
fn path_event(&mut self, event: PathEvent)
[src]
fn with_svg(self) -> SvgPathBuilder<Self> where
Self: Sized,
[src]
Self: Sized,
impl PolygonBuilder for PathState
[src]
impl StructuralPartialEq for PathState
[src]
impl SvgBuilder for PathState
[src]
fn relative_move_to(&mut self, to: Vector)
[src]
fn relative_line_to(&mut self, to: Vector)
[src]
fn relative_quadratic_bezier_to(&mut self, ctrl: Vector, to: Vector)
[src]
fn relative_cubic_bezier_to(
&mut self,
_ctrl1: Vector,
ctrl2: Vector,
to: Vector
)
[src]
&mut self,
_ctrl1: Vector,
ctrl2: Vector,
to: Vector
)
fn smooth_cubic_bezier_to(&mut self, ctrl2: Point, to: Point)
[src]
fn smooth_relative_cubic_bezier_to(&mut self, ctrl2: Vector, to: Vector)
[src]
fn smooth_quadratic_bezier_to(&mut self, to: Point)
[src]
fn smooth_relative_quadratic_bezier_to(&mut self, to: Vector)
[src]
fn horizontal_line_to(&mut self, x: f32)
[src]
fn relative_horizontal_line_to(&mut self, dx: f32)
[src]
fn vertical_line_to(&mut self, y: f32)
[src]
fn relative_vertical_line_to(&mut self, dy: f32)
[src]
fn arc_to(
&mut self,
_radii: Vector,
_x_rotation: Angle,
_flags: ArcFlags,
to: Point
)
[src]
&mut self,
_radii: Vector,
_x_rotation: Angle,
_flags: ArcFlags,
to: Point
)
fn relative_arc_to(
&mut self,
_radii: Vector,
_x_rotation: Angle,
_flags: ArcFlags,
to: Vector
)
[src]
&mut self,
_radii: Vector,
_x_rotation: Angle,
_flags: ArcFlags,
to: Vector
)
Auto Trait Implementations
impl RefUnwindSafe for PathState
impl Send for PathState
impl Sync for PathState
impl Unpin for PathState
impl UnwindSafe for PathState
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>,