[−][src]Struct lyon_path::path::Builder
The default builder for Path
.
Implementations
impl Builder
[src]
pub fn new() -> Self
[src]
pub fn with_capacity(points: usize, edges: usize) -> Self
[src]
pub fn with_svg(self) -> WithSvg<Self>
[src]
pub fn begin(&mut self, at: Point) -> EndpointId
[src]
pub fn end(&mut self, close: bool)
[src]
pub fn close(&mut self)
[src]
pub fn line_to(&mut self, to: Point) -> EndpointId
[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 build(self) -> Path
[src]
pub fn path_event(&mut self, event: PathEvent)
[src]
pub fn reserve(&mut self, endpoints: usize, ctrl_points: usize)
[src]
pub fn concatenate(&mut self, paths: &[PathSlice<'_>])
[src]
Trait Implementations
impl Build for Builder
[src]
type PathType = Path
The type of object that is created by this builder.
pub fn build(self) -> Path
[src]
impl PathBuilder for Builder
[src]
pub fn begin(&mut self, at: Point) -> EndpointId
[src]
pub fn end(&mut self, close: bool)
[src]
pub fn line_to(&mut self, to: Point) -> EndpointId
[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 reserve(&mut self, endpoints: usize, ctrl_points: usize)
[src]
pub fn close(&mut self)
[src]
pub fn path_event(&mut self, event: PathEvent)
[src]
pub fn extend<Evts>(&mut self, events: Evts) where
Evts: IntoIterator<Item = PathEvent>,
[src]
Evts: IntoIterator<Item = PathEvent>,
pub fn add_polygon(&mut self, polygon: Polygon<'_, Point>)
[src]
pub fn add_point(&mut self, at: Point) -> EndpointId
[src]
pub fn add_line_segment(
&mut self,
line: &LineSegment<f32>
) -> (EndpointId, EndpointId)
[src]
&mut self,
line: &LineSegment<f32>
) -> (EndpointId, EndpointId)
pub fn add_ellipse(
&mut self,
center: Point,
radii: Vector,
x_rotation: Angle,
winding: Winding
)
[src]
&mut self,
center: Point,
radii: Vector,
x_rotation: Angle,
winding: Winding
)
pub fn add_circle(&mut self, center: Point, radius: f32, winding: Winding) where
Self: Sized,
[src]
Self: Sized,
pub fn add_rectangle(&mut self, rect: &Rect, winding: Winding)
[src]
pub fn add_rounded_rectangle(
&mut self,
rect: &Rect,
radii: &BorderRadii,
winding: Winding
) where
Self: Sized,
[src]
&mut self,
rect: &Rect,
radii: &BorderRadii,
winding: Winding
) where
Self: Sized,
pub fn flattened(self, tolerance: f32) -> Flattened<Self> where
Self: Sized,
[src]
Self: Sized,
pub fn transformed<Transform>(
self,
transform: Transform
) -> Transformed<Self, Transform> where
Self: Sized,
Transform: Transformation<f32>,
[src]
self,
transform: Transform
) -> Transformed<Self, Transform> where
Self: Sized,
Transform: Transformation<f32>,
pub fn with_svg(self) -> WithSvg<Self> where
Self: Sized,
[src]
Self: Sized,
Auto Trait Implementations
impl RefUnwindSafe for Builder
[src]
impl Send for Builder
[src]
impl Sync for Builder
[src]
impl Unpin for Builder
[src]
impl UnwindSafe for Builder
[src]
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>,