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
sourceimpl Outline
impl Outline
sourcepub fn contours(&self) -> Contours<'_>ⓘNotable traits for Contours<'a>impl<'a> Iterator for Contours<'a> type Item = Contour<'a>;
pub fn contours(&self) -> Contours<'_>ⓘNotable traits for Contours<'a>impl<'a> Iterator for Contours<'a> type Item = Contour<'a>;
Returns an iterator over the contours of self
.
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
sourceimpl<'a> ExtendFromInternalIterator<Contour<'a>> for Outline
impl<'a> ExtendFromInternalIterator<Contour<'a>> for Outline
sourcefn 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
.sourceimpl 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 RefUnwindSafe for Outline
impl Send for Outline
impl Sync for Outline
impl Unpin for Outline
impl UnwindSafe for Outline
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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