Struct lyon_path::path_buffer::Builder [−][src]
pub struct Builder<'l> { /* fields omitted */ }
A Builder that appends a path to an existing PathBuffer.
Implements the PathBuilder
trait.
Implementations
impl<'l> Builder<'l>
[src]
pub fn with_attributes(self, num_attributes: usize) -> BuilderWithAttributes<'l>
[src]
pub fn build(self) -> usize
[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]
Trait Implementations
impl<'l> Build for Builder<'l>
[src]
type PathType = usize
The type of object that is created by this builder.
fn build(self) -> usize
[src]
impl<'l> PathBuilder for Builder<'l>
[src]
fn begin(&mut self, at: Point) -> EndpointId
[src]
fn end(&mut self, close: bool)
[src]
fn line_to(&mut self, to: Point) -> EndpointId
[src]
fn quadratic_bezier_to(&mut self, ctrl: Point, to: Point) -> EndpointId
[src]
fn cubic_bezier_to(
&mut self,
ctrl1: Point,
ctrl2: Point,
to: Point
) -> EndpointId
[src]
&mut self,
ctrl1: Point,
ctrl2: Point,
to: Point
) -> EndpointId
fn reserve(&mut self, endpoints: usize, ctrl_points: usize)
[src]
fn close(&mut self)
[src]
fn path_event(&mut self, event: PathEvent)
[src]
fn extend<Evts>(&mut self, events: Evts) where
Evts: IntoIterator<Item = PathEvent>,
[src]
Evts: IntoIterator<Item = PathEvent>,
fn add_polygon(&mut self, polygon: Polygon<'_, Point>)
[src]
fn add_point(&mut self, at: Point) -> EndpointId
[src]
fn add_line_segment(
&mut self,
line: &LineSegment<f32>
) -> (EndpointId, EndpointId)
[src]
&mut self,
line: &LineSegment<f32>
) -> (EndpointId, EndpointId)
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
)
fn add_circle(&mut self, center: Point, radius: f32, winding: Winding) where
Self: Sized,
[src]
Self: Sized,
fn add_rectangle(&mut self, rect: &Rect, winding: Winding)
[src]
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,
fn flattened(self, tolerance: f32) -> Flattened<Self> where
Self: Sized,
[src]
Self: Sized,
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>,
fn with_svg(self) -> WithSvg<Self> where
Self: Sized,
[src]
Self: Sized,
Auto Trait Implementations
impl<'l> RefUnwindSafe for Builder<'l>
impl<'l> Send for Builder<'l>
impl<'l> Sync for Builder<'l>
impl<'l> Unpin for Builder<'l>
impl<'l> !UnwindSafe for Builder<'l>
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>,