#[repr(C)]pub struct SkPath {
pub fPathData: sk_sp<SkPathData>,
pub fFillType: SkPathFillType,
pub fIsVolatile: bool,
}Fields§
§fPathData: sk_sp<SkPathData>§fFillType: SkPathFillType§fIsVolatile: boolImplementations§
Source§impl SkPath
impl SkPath
pub unsafe fn Raw( pts: SkSpan<SkPoint>, verbs: SkSpan<SkPathVerb>, conics: SkSpan<SkScalar>, arg1: SkPathFillType, isVolatile: bool, ) -> SkPath
pub unsafe fn Rect( arg1: *const SkRect, arg2: SkPathFillType, arg3: SkPathDirection, startIndex: c_uint, ) -> SkPath
pub unsafe fn Oval(arg1: *const SkRect, arg2: SkPathDirection) -> SkPath
pub unsafe fn Oval1( arg1: *const SkRect, arg2: SkPathDirection, startIndex: c_uint, ) -> SkPath
pub unsafe fn Circle( center_x: SkScalar, center_y: SkScalar, radius: SkScalar, dir: SkPathDirection, ) -> SkPath
pub unsafe fn RRect(arg1: *const SkRRect, dir: SkPathDirection) -> SkPath
pub unsafe fn RRect1( arg1: *const SkRRect, arg2: SkPathDirection, startIndex: c_uint, ) -> SkPath
pub unsafe fn RRect2( bounds: *const SkRect, rx: SkScalar, ry: SkScalar, dir: SkPathDirection, ) -> SkPath
pub unsafe fn Polygon( pts: SkSpan<SkPoint>, isClosed: bool, fillType: SkPathFillType, isVolatile: bool, ) -> SkPath
pub unsafe fn isInterpolatable(&self, compare: *const SkPath) -> bool
pub unsafe fn makeInterpolate( &self, ending: *const SkPath, weight: SkScalar, ) -> SkPath
pub unsafe fn interpolate( &self, ending: *const SkPath, weight: SkScalar, out: *mut SkPath, ) -> bool
pub unsafe fn makeFillType(&self, newFillType: SkPathFillType) -> SkPath
pub unsafe fn makeToggleInverseFillType(&self) -> SkPath
pub unsafe fn isConvex(&self) -> bool
pub unsafe fn isOval(&self, bounds: *mut SkRect) -> bool
pub unsafe fn isRRect(&self, rrect: *mut SkRRect) -> bool
pub unsafe fn isEmpty(&self) -> bool
pub unsafe fn isLastContourClosed(&self) -> bool
pub unsafe fn isFinite(&self) -> bool
pub unsafe fn makeIsVolatile(&self, isVolatile: bool) -> SkPath
pub unsafe fn IsLineDegenerate( p1: *const SkPoint, p2: *const SkPoint, exact: bool, ) -> bool
pub unsafe fn IsQuadDegenerate( p1: *const SkPoint, p2: *const SkPoint, p3: *const SkPoint, exact: bool, ) -> bool
pub unsafe fn IsCubicDegenerate( p1: *const SkPoint, p2: *const SkPoint, p3: *const SkPoint, p4: *const SkPoint, exact: bool, ) -> bool
pub unsafe fn isLine(&self, line: *mut SkPoint) -> bool
pub unsafe fn points(&self) -> SkSpan<SkPoint>
pub unsafe fn verbs(&self) -> SkSpan<SkPathVerb>
pub unsafe fn conicWeights(&self) -> SkSpan<f32>
pub unsafe fn getLastPt(&self) -> __BindgenOpaqueArray<u32, 3usize>
pub unsafe fn getPoint(&self, index: c_int) -> SkPoint
pub unsafe fn getPoints(&self, points: SkSpan<SkPoint>) -> usize
pub unsafe fn getVerbs(&self, verbs: SkSpan<u8>) -> usize
pub unsafe fn approximateBytesUsed(&self) -> usize
pub unsafe fn getBounds(&self) -> *const SkRect
pub unsafe fn computeTightBounds(&self) -> SkRect
pub unsafe fn conservativelyContainsRect(&self, rect: *const SkRect) -> bool
pub unsafe fn ConvertConicToQuads( p0: *const SkPoint, p1: *const SkPoint, p2: *const SkPoint, w: SkScalar, pts: *mut SkPoint, pow2: c_int, ) -> c_int
pub unsafe fn isRect( &self, rect: *mut SkRect, isClosed: *mut bool, direction: *mut SkPathDirection, ) -> bool
pub unsafe fn tryMakeTransform( &self, matrix: *const SkMatrix, ) -> __BindgenOpaqueArray<u64, 3usize>
pub unsafe fn makeTransform(&self, matrix: *const SkMatrix) -> SkPath
pub unsafe fn getSegmentMasks(&self) -> u32
pub unsafe fn swap(&mut self, other: *mut SkPath)
pub unsafe fn reset(&mut self) -> *mut SkPath
pub unsafe fn iter(&self) -> SkPathIter
pub unsafe fn contains(&self, point: SkPoint) -> bool
pub unsafe fn dump(&self, stream: *mut SkWStream, dumpAsHex: bool)
pub unsafe fn writeToMemory(&self, buffer: *mut c_void) -> usize
pub unsafe fn serialize(&self) -> sk_sp<SkData>
pub unsafe fn ReadFromMemory( buffer: *const c_void, length: usize, bytesRead: *mut usize, ) -> __BindgenOpaqueArray<u64, 3usize>
pub unsafe fn getGenerationID(&self) -> u32
pub unsafe fn isValid(&self) -> bool
pub unsafe fn new(arg1: SkPathFillType) -> Self
pub unsafe fn new1(arg1: *const SkPath) -> Self
pub unsafe fn new2(arg1: *mut SkPath) -> Self
pub unsafe fn destruct(&mut self)
Trait Implementations§
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> 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