pub struct PathCommandsBuilder { /* private fields */ }
Expand description
Builds path commands.
See PathCommands
.
Implementations§
source§impl PathCommandsBuilder
impl PathCommandsBuilder
sourcepub fn with_capacity(cap: usize) -> Self
pub fn with_capacity(cap: usize) -> Self
Creates a pre-allocated builder.
pub fn begin(&mut self, to: EndpointId) -> EventId
pub fn end(&mut self, close: bool) -> Option<EventId>
pub fn line_to(&mut self, to: EndpointId) -> EventId
pub fn quadratic_bezier_to( &mut self, ctrl: ControlPointId, to: EndpointId, ) -> EventId
pub fn cubic_bezier_to( &mut self, ctrl1: ControlPointId, ctrl2: ControlPointId, to: EndpointId, ) -> EventId
sourcepub fn build(self) -> PathCommands
pub fn build(self) -> PathCommands
Consumes the builder and returns path commands.
Trait Implementations§
source§impl Clone for PathCommandsBuilder
impl Clone for PathCommandsBuilder
source§fn clone(&self) -> PathCommandsBuilder
fn clone(&self) -> PathCommandsBuilder
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 moresource§impl Debug for PathCommandsBuilder
impl Debug for PathCommandsBuilder
source§impl Default for PathCommandsBuilder
impl Default for PathCommandsBuilder
source§fn default() -> PathCommandsBuilder
fn default() -> PathCommandsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PathCommandsBuilder
impl RefUnwindSafe for PathCommandsBuilder
impl Send for PathCommandsBuilder
impl Sync for PathCommandsBuilder
impl Unpin for PathCommandsBuilder
impl UnwindSafe for PathCommandsBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)