pub struct OutlineBuilder { /* private fields */ }
Expand description
Accumulates Bézier path rendering commands into an Outline
structure.
Implementations§
Source§impl OutlineBuilder
impl OutlineBuilder
Sourcepub fn new() -> OutlineBuilder
pub fn new() -> OutlineBuilder
Creates a new empty OutlineBuilder
.
Sourcepub fn into_outline(self) -> Outline
pub fn into_outline(self) -> Outline
Consumes this outline builder and returns the resulting outline.
Sourcepub fn take_outline(&mut self) -> Outline
pub fn take_outline(&mut self) -> Outline
Resets the outline builder and returns the old outline.
Trait Implementations§
Source§impl Clone for OutlineBuilder
impl Clone for OutlineBuilder
Source§fn clone(&self) -> OutlineBuilder
fn clone(&self) -> OutlineBuilder
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 OutlineBuilder
impl Debug for OutlineBuilder
Source§impl Default for OutlineBuilder
impl Default for OutlineBuilder
Source§impl OutlineSink for OutlineBuilder
impl OutlineSink for OutlineBuilder
Source§fn quadratic_curve_to(&mut self, ctrl: Vector2F, to: Vector2F)
fn quadratic_curve_to(&mut self, ctrl: Vector2F, to: Vector2F)
Draws a quadratic Bézier curve to a point.
Source§fn cubic_curve_to(&mut self, ctrl: LineSegment2F, to: Vector2F)
fn cubic_curve_to(&mut self, ctrl: LineSegment2F, to: Vector2F)
Draws a cubic Bézier curve to a point.
Auto Trait Implementations§
impl Freeze for OutlineBuilder
impl RefUnwindSafe for OutlineBuilder
impl Send for OutlineBuilder
impl Sync for OutlineBuilder
impl Unpin for OutlineBuilder
impl UnwindSafe for OutlineBuilder
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