[−][src]Struct makepad_font::outline::Outline
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]
ⓘImportant traits for Contours<'a>
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]
fn transform<T>(self, t: &T) -> Outline where
T: Transformation,
[src]
T: Transformation,
fn transform_mut<T>(&mut self, t: &T) where
T: Transformation,
[src]
T: Transformation,
impl<'a> ExtendFromInternalIterator<Contour<'a>> for Outline
[src]
fn extend_from_internal_iter<I>(&mut self, internal_iter: I) where
I: IntoInternalIterator<Item = Contour<'a>>,
[src]
I: IntoInternalIterator<Item = Contour<'a>>,
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]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,