Struct font_kit::outline::OutlineBuilder
source · pub struct OutlineBuilder {
outline: Outline,
current_contour: Contour,
}
Expand description
Accumulates Bézier path rendering commands into an Outline
structure.
Fields§
§outline: Outline
§current_contour: Contour
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