[][src]Struct makepad_font::outline::Outline

pub struct Outline { /* fields omitted */ }

The outline for a glyph.

An outline consists of one or more closed contours, each of which consists of one or more quadratic b-spline curve segments, which are described by a sequence of outline points.

Methods

impl Outline[src]

pub fn new() -> Outline[src]

Creates a new empty outline.

Important traits for Contours<'a>
pub fn contours(&self) -> Contours[src]

Returns an iterator over the contours of self.

pub fn points(&self) -> &[OutlinePoint][src]

Returns an slice of the points of self.

pub fn commands(&self) -> Commands[src]

Returns an iterator over the path commands that correspond to self.

pub fn points_mut(&mut self) -> &mut [OutlinePoint][src]

Returns a mutable slice of the points of self.

pub fn begin_contour(&mut self) -> ContourBuilder[src]

Returns a builder for a contour.

Trait Implementations

impl Clone for Outline[src]

impl Default for Outline[src]

impl PartialEq<Outline> for Outline[src]

impl Debug for Outline[src]

impl StructuralPartialEq for Outline[src]

impl Transform for Outline[src]

impl<'a> ExtendFromInternalIterator<Contour<'a>> for Outline[src]

Auto Trait Implementations

impl Send for Outline

impl Sync for Outline

impl Unpin for Outline

impl UnwindSafe for Outline

impl RefUnwindSafe for Outline

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]