Struct lyon_path::path::BuilderWithAttributes
source · pub struct BuilderWithAttributes { /* private fields */ }
Expand description
A builder for Path
with custom attributes.
Custom attributes are a fixed number of f32
values associated with each endpoint.
All endpoints must have the same number of custom attributes,
Implementations§
source§impl BuilderWithAttributes
impl BuilderWithAttributes
pub fn new(num_attributes: usize) -> Self
pub fn reserve(&mut self, endpoints: usize, ctrl_points: usize)
pub fn begin(&mut self, at: Point, attributes: &[f32]) -> EndpointId
pub fn end(&mut self, close: bool)
pub fn close(&mut self)
pub fn line_to(&mut self, to: Point, attributes: &[f32]) -> EndpointId
pub fn quadratic_bezier_to( &mut self, ctrl: Point, to: Point, attributes: &[f32] ) -> EndpointId
pub fn cubic_bezier_to( &mut self, ctrl1: Point, ctrl2: Point, to: Point, attributes: &[f32] ) -> EndpointId
pub fn build(self) -> Path
pub fn concatenate(&mut self, paths: &[PathSlice<'_>])
Trait Implementations§
source§impl Clone for BuilderWithAttributes
impl Clone for BuilderWithAttributes
source§fn clone(&self) -> BuilderWithAttributes
fn clone(&self) -> BuilderWithAttributes
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for BuilderWithAttributes
impl Send for BuilderWithAttributes
impl Sync for BuilderWithAttributes
impl Unpin for BuilderWithAttributes
impl UnwindSafe for BuilderWithAttributes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more