[][src]Struct fontdue::raw::RawPoint

pub struct RawPoint {
    pub x: f32,
    pub y: f32,
    pub flags: u8,
    pub end_point: bool,
    pub start_point: bool,
}

Fields

x: f32

Absolute X coordinate.

y: f32

Absolute Y coordinate.

flags: u8

Flags associated with the point. The last bit (0x80) is used to mark if this is the start of a new contour. The bit is otherwise reserved in spec.

end_point: bool

Marks if this is the last point in the contour.

start_point: bool

Marks if this is the first point in the contour.

Implementations

impl RawPoint[src]

pub fn on_curve(&self) -> bool[src]

pub fn transform(&mut self, a: f32, b: f32, c: f32, d: f32, cx: f32, cy: f32)[src]

Trait Implementations

impl Clone for RawPoint[src]

impl Copy for RawPoint[src]

impl Debug for RawPoint[src]

impl Default for RawPoint[src]

impl PartialEq<RawPoint> for RawPoint[src]

impl StructuralPartialEq for RawPoint[src]

Auto Trait Implementations

impl Send for RawPoint

impl Sync for RawPoint

impl Unpin for RawPoint

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.