#[repr(C)]
pub struct SkPathBuilder { pub fPts: SkPathRef_PointsArray, pub fVerbs: SkPathRef_VerbsArray, pub fConicWeights: SkPathRef_ConicWeightsArray, pub fFillType: SkPathFillType, pub fIsVolatile: bool, pub fSegmentMask: c_uint, pub fLastMovePoint: SkPoint, pub fLastMoveIndex: c_int, pub fNeedsMoveVerb: bool, pub fIsA: SkPathBuilder_IsA, pub fIsAStart: c_int, pub fIsACCW: bool, }

Fields§

§fPts: SkPathRef_PointsArray§fVerbs: SkPathRef_VerbsArray§fConicWeights: SkPathRef_ConicWeightsArray§fFillType: SkPathFillType§fIsVolatile: bool§fSegmentMask: c_uint§fLastMovePoint: SkPoint§fLastMoveIndex: c_int§fNeedsMoveVerb: bool§fIsA: SkPathBuilder_IsA§fIsAStart: c_int§fIsACCW: bool

Implementations§

source§

impl SkPathBuilder

source

pub unsafe fn computeBounds(&self) -> SkRect

source

pub unsafe fn snapshot(&self) -> SkPath

source

pub unsafe fn detach(&mut self) -> SkPath

source

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

source

pub unsafe fn moveTo(&mut self, pt: SkPoint) -> *mut SkPathBuilder

source

pub unsafe fn lineTo(&mut self, pt: SkPoint) -> *mut SkPathBuilder

source

pub unsafe fn quadTo( &mut self, pt1: SkPoint, pt2: SkPoint ) -> *mut SkPathBuilder

source

pub unsafe fn conicTo( &mut self, pt1: SkPoint, pt2: SkPoint, w: SkScalar ) -> *mut SkPathBuilder

source

pub unsafe fn cubicTo( &mut self, pt1: SkPoint, pt2: SkPoint, pt3: SkPoint ) -> *mut SkPathBuilder

source

pub unsafe fn close(&mut self) -> *mut SkPathBuilder

source

pub unsafe fn polylineTo( &mut self, pts: *const SkPoint, count: c_int ) -> *mut SkPathBuilder

source

pub unsafe fn rLineTo(&mut self, pt: SkPoint) -> *mut SkPathBuilder

source

pub unsafe fn rQuadTo( &mut self, pt1: SkPoint, pt2: SkPoint ) -> *mut SkPathBuilder

source

pub unsafe fn rConicTo( &mut self, p1: SkPoint, p2: SkPoint, w: SkScalar ) -> *mut SkPathBuilder

source

pub unsafe fn rCubicTo( &mut self, pt1: SkPoint, pt2: SkPoint, pt3: SkPoint ) -> *mut SkPathBuilder

source

pub unsafe fn arcTo( &mut self, oval: *const SkRect, startAngleDeg: SkScalar, sweepAngleDeg: SkScalar, forceMoveTo: bool ) -> *mut SkPathBuilder

source

pub unsafe fn arcTo1( &mut self, p1: SkPoint, p2: SkPoint, radius: SkScalar ) -> *mut SkPathBuilder

source

pub unsafe fn arcTo2( &mut self, r: SkPoint, xAxisRotate: SkScalar, largeArc: SkPathBuilder_ArcSize, sweep: SkPathDirection, xy: SkPoint ) -> *mut SkPathBuilder

source

pub unsafe fn addArc( &mut self, oval: *const SkRect, startAngleDeg: SkScalar, sweepAngleDeg: SkScalar ) -> *mut SkPathBuilder

source

pub unsafe fn addRect( &mut self, arg1: *const SkRect, arg2: SkPathDirection, startIndex: c_uint ) -> *mut SkPathBuilder

source

pub unsafe fn addOval( &mut self, arg1: *const SkRect, arg2: SkPathDirection, startIndex: c_uint ) -> *mut SkPathBuilder

source

pub unsafe fn addRRect( &mut self, arg1: *const SkRRect, arg2: SkPathDirection, startIndex: c_uint ) -> *mut SkPathBuilder

source

pub unsafe fn addCircle( &mut self, center_x: SkScalar, center_y: SkScalar, radius: SkScalar, dir: SkPathDirection ) -> *mut SkPathBuilder

source

pub unsafe fn addPolygon( &mut self, pts: *const SkPoint, count: c_int, isClosed: bool ) -> *mut SkPathBuilder

source

pub unsafe fn addPath(&mut self, arg1: *const SkPath) -> *mut SkPathBuilder

source

pub unsafe fn incReserve(&mut self, extraPtCount: c_int, extraVerbCount: c_int)

source

pub unsafe fn offset( &mut self, dx: SkScalar, dy: SkScalar ) -> *mut SkPathBuilder

source

pub unsafe fn new() -> Self

source

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

source

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

source

pub unsafe fn destruct(&mut self)

Trait Implementations§

source§

impl Debug for SkPathBuilder

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.