pub struct Outline { /* private fields */ }
Expand description
Scaled glyph outline represented as a collection of layers and a sequence of points and verbs.
Implementations§
source§impl Outline
impl Outline
sourcepub fn get<'a>(&'a self, index: usize) -> Option<Layer<'a>>
pub fn get<'a>(&'a self, index: usize) -> Option<Layer<'a>>
Returns a reference to the layer at the specified index.
sourcepub fn get_mut<'a>(&'a mut self, index: usize) -> Option<LayerMut<'a>>
pub fn get_mut<'a>(&'a mut self, index: usize) -> Option<LayerMut<'a>>
Returns a mutable reference to the layer at the specified index.
sourcepub fn points_mut(&mut self) -> &mut [Point]
pub fn points_mut(&mut self) -> &mut [Point]
Returns a mutable reference to the sequence of points in the outline.
sourcepub fn transform(&mut self, transform: &Transform)
pub fn transform(&mut self, transform: &Transform)
Transforms the outline by the specified matrix.
Trait Implementations§
source§impl OutlinePen for Outline
impl OutlinePen for Outline
source§fn quad_to(&mut self, cx0: f32, cy0: f32, x: f32, y: f32)
fn quad_to(&mut self, cx0: f32, cy0: f32, x: f32, y: f32)
Emit a quadratic bezier segment from the current point with a control
point at (cx0, cy0) and ending at (x, y).
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)