pub struct Outline { /* private fields */ }Expand description
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.
Implementations§
Source§impl Outline
impl Outline
Sourcepub fn points(&self) -> &[OutlinePoint]
pub fn points(&self) -> &[OutlinePoint]
Returns an slice of the points of self.
Sourcepub fn commands(&self) -> Commands<'_>
pub fn commands(&self) -> Commands<'_>
Returns an iterator over the path commands that correspond to self.
Sourcepub fn points_mut(&mut self) -> &mut [OutlinePoint]
pub fn points_mut(&mut self) -> &mut [OutlinePoint]
Returns a mutable slice of the points of self.
Sourcepub fn begin_contour(&mut self) -> ContourBuilder<'_>
pub fn begin_contour(&mut self) -> ContourBuilder<'_>
Returns a builder for a contour.
Trait Implementations§
Source§impl<'a> ExtendFromInternalIterator<Contour<'a>> for Outline
impl<'a> ExtendFromInternalIterator<Contour<'a>> for Outline
Source§fn extend_from_internal_iter<I>(&mut self, internal_iter: I)where
I: IntoInternalIterator<Item = Contour<'a>>,
fn extend_from_internal_iter<I>(&mut self, internal_iter: I)where
I: IntoInternalIterator<Item = Contour<'a>>,
Extends
self with each item of internal_iter.Source§impl Transform for Outline
impl Transform for Outline
fn transform<T>(self, t: &T) -> Outlinewhere
T: Transformation,
fn transform_mut<T>(&mut self, t: &T)where
T: Transformation,
impl StructuralPartialEq for Outline
Auto Trait Implementations§
impl Freeze for Outline
impl RefUnwindSafe for Outline
impl Send for Outline
impl Sync for Outline
impl Unpin for Outline
impl UnwindSafe for Outline
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