pub struct CurvePoint {
pub x: i16,
pub y: i16,
pub on_curve: bool,
pub cubic: bool,
}Expand description
Point with associated on-curve and cubic flags in a simple glyph.
This type is a simpler representation of the data in the blob.
Fields§
§x: i16X coordinate.
y: i16Y coordinate.
on_curve: boolTrue if this is an on-curve point.
cubic: boolTrue if the CUBIC flag is set, including on on-curve points.
Implementations§
Source§impl CurvePoint
impl CurvePoint
Sourcepub fn off_curve_cubic(x: i16, y: i16) -> Self
pub fn off_curve_cubic(x: i16, y: i16) -> Self
Constructs a cubic off-curve control point.
Trait Implementations§
Source§impl Clone for CurvePoint
impl Clone for CurvePoint
Source§fn clone(&self) -> CurvePoint
fn clone(&self) -> CurvePoint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CurvePoint
Source§impl Debug for CurvePoint
impl Debug for CurvePoint
impl Eq for CurvePoint
Source§impl PartialEq for CurvePoint
impl PartialEq for CurvePoint
impl StructuralPartialEq for CurvePoint
Auto Trait Implementations§
impl Freeze for CurvePoint
impl RefUnwindSafe for CurvePoint
impl Send for CurvePoint
impl Sync for CurvePoint
impl Unpin for CurvePoint
impl UnsafeUnpin for CurvePoint
impl UnwindSafe for CurvePoint
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