[−][src]Struct lyon_path::Builder
Builds path objects.
Methods
impl Builder
[src]
pub fn new() -> Self
[src]
pub fn with_capacity(points: usize, edges: usize) -> Self
[src]
pub fn with_svg(self) -> SvgPathBuilder<Self>
[src]
pub fn flattened(self, tolerance: f32) -> FlatteningBuilder<Self>
[src]
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 polygon(&mut self, points: &[Point])
[src]
Add a closed polygon.
pub fn current_position(&self) -> Point
[src]
pub fn build(self) -> Path
[src]
Trait Implementations
impl Build for Builder
[src]
type PathType = Path
The type of object that is created by this builder.
fn build(self) -> Path
[src]
fn build_and_reset(&mut self) -> Path
[src]
impl FlatPathBuilder for Builder
[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 PathBuilder for 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> where
Self: Sized,
[src]
Self: Sized,
impl PolygonBuilder for Builder
[src]
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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, 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>,