Struct font_kit::outline::OutlineBuilder
source · [−]pub struct OutlineBuilder { /* private fields */ }Expand description
Accumulates Bézier path rendering commands into an Outline structure.
Implementations
sourceimpl 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
sourceimpl Clone for OutlineBuilder
impl Clone for OutlineBuilder
sourcefn clone(&self) -> OutlineBuilder
fn clone(&self) -> OutlineBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for OutlineBuilder
impl Debug for OutlineBuilder
sourceimpl OutlineSink for OutlineBuilder
impl OutlineSink for OutlineBuilder
sourcefn 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.
sourcefn 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 RefUnwindSafe for OutlineBuilder
impl Send for OutlineBuilder
impl Sync for OutlineBuilder
impl Unpin for OutlineBuilder
impl UnwindSafe for OutlineBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more