Skip to main content

SkPath

Struct SkPath 

Source
#[repr(C)]
pub struct SkPath { pub fPathData: sk_sp<SkPathData>, pub fFillType: SkPathFillType, pub fIsVolatile: bool, }

Fields§

§fPathData: sk_sp<SkPathData>§fFillType: SkPathFillType§fIsVolatile: bool

Implementations§

Source§

impl SkPath

Source

pub unsafe fn Raw( pts: SkSpan<SkPoint>, verbs: SkSpan<SkPathVerb>, conics: SkSpan<SkScalar>, arg1: SkPathFillType, isVolatile: bool, ) -> SkPath

Source

pub unsafe fn Rect( arg1: *const SkRect, arg2: SkPathFillType, arg3: SkPathDirection, startIndex: c_uint, ) -> SkPath

Source

pub unsafe fn Oval(arg1: *const SkRect, arg2: SkPathDirection) -> SkPath

Source

pub unsafe fn Oval1( arg1: *const SkRect, arg2: SkPathDirection, startIndex: c_uint, ) -> SkPath

Source

pub unsafe fn Circle( center_x: SkScalar, center_y: SkScalar, radius: SkScalar, dir: SkPathDirection, ) -> SkPath

Source

pub unsafe fn RRect(arg1: *const SkRRect, dir: SkPathDirection) -> SkPath

Source

pub unsafe fn RRect1( arg1: *const SkRRect, arg2: SkPathDirection, startIndex: c_uint, ) -> SkPath

Source

pub unsafe fn RRect2( bounds: *const SkRect, rx: SkScalar, ry: SkScalar, dir: SkPathDirection, ) -> SkPath

Source

pub unsafe fn Polygon( pts: SkSpan<SkPoint>, isClosed: bool, fillType: SkPathFillType, isVolatile: bool, ) -> SkPath

Source

pub unsafe fn isInterpolatable(&self, compare: *const SkPath) -> bool

Source

pub unsafe fn makeInterpolate( &self, ending: *const SkPath, weight: SkScalar, ) -> SkPath

Source

pub unsafe fn interpolate( &self, ending: *const SkPath, weight: SkScalar, out: *mut SkPath, ) -> bool

Source

pub unsafe fn makeFillType(&self, newFillType: SkPathFillType) -> SkPath

Source

pub unsafe fn makeToggleInverseFillType(&self) -> SkPath

Source

pub unsafe fn isConvex(&self) -> bool

Source

pub unsafe fn isOval(&self, bounds: *mut SkRect) -> bool

Source

pub unsafe fn isRRect(&self, rrect: *mut SkRRect) -> bool

Source

pub unsafe fn isEmpty(&self) -> bool

Source

pub unsafe fn isLastContourClosed(&self) -> bool

Source

pub unsafe fn isFinite(&self) -> bool

Source

pub unsafe fn makeIsVolatile(&self, isVolatile: bool) -> SkPath

Source

pub unsafe fn IsLineDegenerate( p1: *const SkPoint, p2: *const SkPoint, exact: bool, ) -> bool

Source

pub unsafe fn IsQuadDegenerate( p1: *const SkPoint, p2: *const SkPoint, p3: *const SkPoint, exact: bool, ) -> bool

Source

pub unsafe fn IsCubicDegenerate( p1: *const SkPoint, p2: *const SkPoint, p3: *const SkPoint, p4: *const SkPoint, exact: bool, ) -> bool

Source

pub unsafe fn isLine(&self, line: *mut SkPoint) -> bool

Source

pub unsafe fn points(&self) -> SkSpan<SkPoint>

Source

pub unsafe fn verbs(&self) -> SkSpan<SkPathVerb>

Source

pub unsafe fn conicWeights(&self) -> SkSpan<f32>

Source

pub unsafe fn getLastPt(&self) -> __BindgenOpaqueArray<u32, 3usize>

Source

pub unsafe fn getPoint(&self, index: c_int) -> SkPoint

Source

pub unsafe fn getPoints(&self, points: SkSpan<SkPoint>) -> usize

Source

pub unsafe fn getVerbs(&self, verbs: SkSpan<u8>) -> usize

Source

pub unsafe fn approximateBytesUsed(&self) -> usize

Source

pub unsafe fn getBounds(&self) -> *const SkRect

Source

pub unsafe fn computeTightBounds(&self) -> SkRect

Source

pub unsafe fn conservativelyContainsRect(&self, rect: *const SkRect) -> bool

Source

pub unsafe fn ConvertConicToQuads( p0: *const SkPoint, p1: *const SkPoint, p2: *const SkPoint, w: SkScalar, pts: *mut SkPoint, pow2: c_int, ) -> c_int

Source

pub unsafe fn isRect( &self, rect: *mut SkRect, isClosed: *mut bool, direction: *mut SkPathDirection, ) -> bool

Source

pub unsafe fn tryMakeTransform( &self, matrix: *const SkMatrix, ) -> __BindgenOpaqueArray<u64, 3usize>

Source

pub unsafe fn makeTransform(&self, matrix: *const SkMatrix) -> SkPath

Source

pub unsafe fn getSegmentMasks(&self) -> u32

Source

pub unsafe fn swap(&mut self, other: *mut SkPath)

Source

pub unsafe fn reset(&mut self) -> *mut SkPath

Source

pub unsafe fn iter(&self) -> SkPathIter

Source

pub unsafe fn contains(&self, point: SkPoint) -> bool

Source

pub unsafe fn dump(&self, stream: *mut SkWStream, dumpAsHex: bool)

Source

pub unsafe fn writeToMemory(&self, buffer: *mut c_void) -> usize

Source

pub unsafe fn serialize(&self) -> sk_sp<SkData>

Source

pub unsafe fn ReadFromMemory( buffer: *const c_void, length: usize, bytesRead: *mut usize, ) -> __BindgenOpaqueArray<u64, 3usize>

Source

pub unsafe fn getGenerationID(&self) -> u32

Source

pub unsafe fn isValid(&self) -> bool

Source

pub unsafe fn new(arg1: SkPathFillType) -> Self

Source

pub unsafe fn new1(arg1: *const SkPath) -> Self

Source

pub unsafe fn new2(arg1: *mut SkPath) -> Self

Source

pub unsafe fn destruct(&mut self)

Trait Implementations§

Source§

impl Debug for SkPath

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for SkPath

§

impl !RefUnwindSafe for SkPath

§

impl !Send for SkPath

§

impl !Sync for SkPath

§

impl Unpin for SkPath

§

impl UnsafeUnpin for SkPath

§

impl UnwindSafe for SkPath

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.