Struct read_fonts::tables::gvar::GlyphDelta
source · pub struct GlyphDelta {
pub position: u16,
pub x_delta: i16,
pub y_delta: i16,
}
Expand description
Delta information for a single point or component in a glyph.
Fields§
§position: u16
The point or component index.
x_delta: i16
The x delta.
y_delta: i16
The y delta.
Implementations§
source§impl GlyphDelta
impl GlyphDelta
sourcepub fn apply_scalar<D: PointCoord>(self, scalar: Fixed) -> Point<D>
pub fn apply_scalar<D: PointCoord>(self, scalar: Fixed) -> Point<D>
Applies a tuple scalar to this delta.
Trait Implementations§
source§impl Clone for GlyphDelta
impl Clone for GlyphDelta
source§fn clone(&self) -> GlyphDelta
fn clone(&self) -> GlyphDelta
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GlyphDelta
impl Debug for GlyphDelta
source§impl PartialEq for GlyphDelta
impl PartialEq for GlyphDelta
source§fn eq(&self, other: &GlyphDelta) -> bool
fn eq(&self, other: &GlyphDelta) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TupleDelta for GlyphDelta
impl TupleDelta for GlyphDelta
impl Copy for GlyphDelta
impl Eq for GlyphDelta
impl StructuralPartialEq for GlyphDelta
Auto Trait Implementations§
impl Freeze for GlyphDelta
impl RefUnwindSafe for GlyphDelta
impl Send for GlyphDelta
impl Sync for GlyphDelta
impl Unpin for GlyphDelta
impl UnwindSafe for GlyphDelta
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