Struct skia_bindings::SkPoint
source · #[repr(C)]pub struct SkPoint {
pub fX: SkScalar,
pub fY: SkScalar,
}
Fields§
§fX: SkScalar
§fY: SkScalar
Implementations§
source§impl SkPoint
impl SkPoint
pub unsafe fn normalize(&mut self) -> bool
pub unsafe fn setNormalize(&mut self, x: SkScalar, y: SkScalar) -> bool
pub unsafe fn setLength(&mut self, length: SkScalar) -> bool
pub unsafe fn setLength1( &mut self, x: SkScalar, y: SkScalar, length: SkScalar ) -> bool
pub unsafe fn scale(&self, scale: SkScalar, dst: *mut SkPoint)
pub unsafe fn Length(x: SkScalar, y: SkScalar) -> SkScalar
pub unsafe fn Normalize(vec: *mut SkVector) -> SkScalar
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for SkPoint
impl Send for SkPoint
impl Sync for SkPoint
impl Unpin for SkPoint
impl UnwindSafe for SkPoint
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