[−][src]Struct lyon_tess2::flattened_path::Builder
A builder for flattened paths.
Implementations
impl Builder
[src]
pub fn new(tolerance: f32) -> Self
[src]
pub fn build(self) -> FlattenedPath
[src]
pub fn with_svg(self, tolerance: f32) -> WithSvg<Flattened<Self>>
[src]
pub fn current_position(&self) -> Point
[src]
Trait Implementations
impl Build for Builder
[src]
type PathType = FlattenedPath
The type of object that is created by this builder.
pub fn build(self) -> FlattenedPath
[src]
impl Default for Builder
[src]
impl PathBuilder for Builder
[src]
pub fn begin(&mut self, to: Point) -> EndpointId
[src]
pub fn line_to(&mut self, to: Point) -> EndpointId
[src]
pub fn end(&mut self, close: bool)
[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 close(&mut self)
pub fn reserve(&mut self, _endpoints: usize, _ctrl_points: usize)
pub fn path_event(
&mut self,
event: Event<Point2D<f32, UnknownUnit>, Point2D<f32, UnknownUnit>>
)
&mut self,
event: Event<Point2D<f32, UnknownUnit>, Point2D<f32, UnknownUnit>>
)
pub fn extend<Evts>(&mut self, events: Evts) where
Evts: IntoIterator<Item = Event<Point2D<f32, UnknownUnit>, Point2D<f32, UnknownUnit>>>,
Evts: IntoIterator<Item = Event<Point2D<f32, UnknownUnit>, Point2D<f32, UnknownUnit>>>,
pub fn add_polygon(&mut self, polygon: Polygon<'_, Point2D<f32, UnknownUnit>>)
pub fn add_point(&mut self, at: Point2D<f32, UnknownUnit>) -> EndpointId
pub fn add_line_segment(
&mut self,
line: &LineSegment<f32>
) -> (EndpointId, EndpointId)
&mut self,
line: &LineSegment<f32>
) -> (EndpointId, EndpointId)
pub fn add_ellipse(
&mut self,
center: Point2D<f32, UnknownUnit>,
radii: Vector2D<f32, UnknownUnit>,
x_rotation: Angle<f32>,
winding: Winding
)
&mut self,
center: Point2D<f32, UnknownUnit>,
radii: Vector2D<f32, UnknownUnit>,
x_rotation: Angle<f32>,
winding: Winding
)
pub fn add_circle(
&mut self,
center: Point2D<f32, UnknownUnit>,
radius: f32,
winding: Winding
)
&mut self,
center: Point2D<f32, UnknownUnit>,
radius: f32,
winding: Winding
)
pub fn add_rectangle(&mut self, rect: &Rect<f32, UnknownUnit>, winding: Winding)
pub fn add_rounded_rectangle(
&mut self,
rect: &Rect<f32, UnknownUnit>,
radii: &BorderRadii,
winding: Winding
)
&mut self,
rect: &Rect<f32, UnknownUnit>,
radii: &BorderRadii,
winding: Winding
)
pub fn flattened(self, tolerance: f32) -> Flattened<Self>
pub fn transformed<Transform>(
self,
transform: Transform
) -> Transformed<Self, Transform> where
Transform: Transformation<f32>,
self,
transform: Transform
) -> Transformed<Self, Transform> where
Transform: Transformation<f32>,
pub fn with_svg(self) -> WithSvg<Self>
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>,