[−][src]Struct lyon_path::builder::SvgPathBuilder
Implements the Svg building interface on top of a PathBuilder.
Methods
impl<Builder: PathBuilder> SvgPathBuilder<Builder>[src]
pub fn new(builder: Builder) -> SvgPathBuilder<Builder>[src]
Trait Implementations
impl<Builder: PathBuilder> FlatPathBuilder for SvgPathBuilder<Builder>[src]
type PathType = Builder::PathType
The type of object that is created by this builder.
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 build(self) -> Builder::PathType[src]
fn build_and_reset(&mut self) -> Builder::PathType[src]
fn flat_event(&mut self, event: FlattenedEvent)[src]
fn flattened(self, tolerance: f32) -> FlatteningBuilder<Self>[src]
Returns a builder that approximates all curves with sequences of line segments.
impl<Builder: PathBuilder> PathBuilder for SvgPathBuilder<Builder>[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>[src]
Returns a builder that support svg commands.
impl<Builder: PathBuilder> SvgBuilder for SvgPathBuilder<Builder>[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]
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
)
fn svg_event(&mut self, event: SvgEvent)[src]
Auto Trait Implementations
impl<Builder> Unpin for SvgPathBuilder<Builder> where
Builder: Unpin,
Builder: Unpin,
impl<Builder> Sync for SvgPathBuilder<Builder> where
Builder: Sync,
Builder: Sync,
impl<Builder> Send for SvgPathBuilder<Builder> where
Builder: Send,
Builder: Send,
impl<Builder> UnwindSafe for SvgPathBuilder<Builder> where
Builder: UnwindSafe,
Builder: UnwindSafe,
impl<Builder> RefUnwindSafe for SvgPathBuilder<Builder> where
Builder: RefUnwindSafe,
Builder: RefUnwindSafe,
Blanket Implementations
impl<Builder> PolygonBuilder for Builder where
Builder: FlatPathBuilder, [src]
Builder: FlatPathBuilder,
fn polygon(&mut Self, &[TypedPoint2D<f32, UnknownUnit>])[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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
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> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,