[−][src]Struct lyon_path::builder::WithSvg
Implements an SVG-like building interface on top of a PathBuilder.
Implementations
impl<Builder: PathBuilder> WithSvg<Builder>
[src]
pub fn new(builder: Builder) -> Self
[src]
pub fn build(self) -> Builder::PathType where
Builder: Build,
[src]
Builder: Build,
pub fn flattened(self, tolerance: f32) -> WithSvg<Flattened<Builder>>
[src]
pub fn transformed<Transform>(
self,
transform: Transform
) -> WithSvg<Transformed<Builder, Transform>> where
Transform: Transformation<f32>,
[src]
self,
transform: Transform
) -> WithSvg<Transformed<Builder, Transform>> where
Transform: Transformation<f32>,
pub fn move_to(&mut self, to: Point) -> EndpointId
[src]
pub fn line_to(&mut self, to: Point) -> EndpointId
[src]
pub fn close(&mut self)
[src]
pub fn quadratic_bezier_to(&mut self, ctrl: Point, to: Point) -> EndpointId
[src]
pub fn cubic_bezier_to(
&mut self,
ctrl1: Point,
ctrl2: Point,
to: Point
) -> EndpointId
[src]
&mut self,
ctrl1: Point,
ctrl2: Point,
to: Point
) -> EndpointId
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 current_position(&self) -> Point
[src]
pub fn reserve(&mut self, endpoints: usize, ctrl_points: usize)
[src]
impl<Builder, Transform> WithSvg<Transformed<Builder, Transform>> where
Builder: PathBuilder,
Transform: Transformation<f32>,
[src]
Builder: PathBuilder,
Transform: Transformation<f32>,
pub fn set_transform(&mut self, transform: Transform)
[src]
Trait Implementations
impl<Builder: PathBuilder + Build> Build for WithSvg<Builder>
[src]
type PathType = Builder::PathType
The type of object that is created by this builder.
pub fn build(self) -> Builder::PathType
[src]
impl<Builder: PathBuilder> SvgPathBuilder for WithSvg<Builder>
[src]
pub fn move_to(&mut self, to: Point)
[src]
pub fn line_to(&mut self, to: Point)
[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 close(&mut self)
[src]
pub fn relative_move_to(&mut self, to: Vector)
[src]
pub fn relative_line_to(&mut self, to: Vector)
[src]
pub fn relative_quadratic_bezier_to(&mut self, ctrl: Vector, to: Vector)
[src]
pub fn relative_cubic_bezier_to(
&mut self,
ctrl1: Vector,
ctrl2: Vector,
to: Vector
)
[src]
&mut self,
ctrl1: Vector,
ctrl2: Vector,
to: Vector
)
pub fn smooth_cubic_bezier_to(&mut self, ctrl2: Point, to: Point)
[src]
pub fn smooth_relative_cubic_bezier_to(&mut self, ctrl2: Vector, to: Vector)
[src]
pub fn smooth_quadratic_bezier_to(&mut self, to: Point)
[src]
pub fn smooth_relative_quadratic_bezier_to(&mut self, to: Vector)
[src]
pub fn horizontal_line_to(&mut self, x: f32)
[src]
pub fn relative_horizontal_line_to(&mut self, dx: f32)
[src]
pub fn vertical_line_to(&mut self, y: f32)
[src]
pub fn relative_vertical_line_to(&mut self, dy: f32)
[src]
pub 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
)
pub 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
)
pub fn reserve(&mut self, endpoints: usize, ctrl_points: usize)
[src]
pub fn add_polygon(&mut self, polygon: Polygon<'_, Point>)
[src]
Auto Trait Implementations
impl<Builder> RefUnwindSafe for WithSvg<Builder> where
Builder: RefUnwindSafe,
[src]
Builder: RefUnwindSafe,
impl<Builder> Send for WithSvg<Builder> where
Builder: Send,
[src]
Builder: Send,
impl<Builder> Sync for WithSvg<Builder> where
Builder: Sync,
[src]
Builder: Sync,
impl<Builder> Unpin for WithSvg<Builder> where
Builder: Unpin,
[src]
Builder: Unpin,
impl<Builder> UnwindSafe for WithSvg<Builder> where
Builder: UnwindSafe,
[src]
Builder: UnwindSafe,
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, 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>,