[][src]Struct skia_bindings::SkPoint

#[repr(C)]
pub struct SkPoint {
    pub fX: SkScalar,
    pub fY: SkScalar,
}

Fields

fX: SkScalarfY: SkScalar

Methods

impl SkPoint[src]

pub unsafe fn normalize(&mut self) -> bool[src]

pub unsafe fn setNormalize(&mut self, x: SkScalar, y: SkScalar) -> bool[src]

pub unsafe fn setLength(&mut self, length: SkScalar) -> bool[src]

pub unsafe fn setLength1(
    &mut self,
    x: SkScalar,
    y: SkScalar,
    length: SkScalar
) -> bool
[src]

pub unsafe fn scale(&self, scale: SkScalar, dst: *mut SkPoint)[src]

pub unsafe fn Length(x: SkScalar, y: SkScalar) -> SkScalar[src]

pub unsafe fn Normalize(vec: *mut SkVector) -> SkScalar[src]

Trait Implementations

impl Clone for SkPoint[src]

impl Copy for SkPoint[src]

Auto Trait Implementations

impl Send for SkPoint

impl Unpin for SkPoint

impl Sync for SkPoint

impl UnwindSafe for SkPoint

impl RefUnwindSafe for SkPoint

Blanket Implementations

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> From<T> for T[src]

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.

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

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

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