[−][src]Struct skia_bindings::SkPath
Fields
fPathRef: sk_sp<SkPathRef>
fLastMoveToIndex: c_int
fConvexity: u8
fFirstDirection: u8
_bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>
__bindgen_padding_0: u8
Methods
impl SkPath
[src]
pub fn fFillType(&self) -> u8
[src]
pub fn set_fFillType(&mut self, val: u8)
[src]
pub fn fIsVolatile(&self) -> u8
[src]
pub fn set_fIsVolatile(&mut self, val: u8)
[src]
pub fn new_bitfield_1(
fFillType: u8,
fIsVolatile: u8
) -> __BindgenBitfieldUnit<[u8; 1], u8>
[src]
fFillType: u8,
fIsVolatile: u8
) -> __BindgenBitfieldUnit<[u8; 1], u8>
pub unsafe fn isInterpolatable(&self, compare: *const SkPath) -> bool
[src]
pub unsafe fn interpolate(
&self,
ending: *const SkPath,
weight: SkScalar,
out: *mut SkPath
) -> bool
[src]
&self,
ending: *const SkPath,
weight: SkScalar,
out: *mut SkPath
) -> bool
pub unsafe fn setConvexity(&mut self, convexity: SkPath_Convexity)
[src]
pub unsafe fn isOval(&self, bounds: *mut SkRect) -> bool
[src]
pub unsafe fn isRRect(&self, rrect: *mut SkRRect) -> bool
[src]
pub unsafe fn reset(&mut self) -> *mut SkPath
[src]
pub unsafe fn rewind(&mut self) -> *mut SkPath
[src]
pub unsafe fn isLastContourClosed(&self) -> bool
[src]
pub unsafe fn IsLineDegenerate(
p1: *const SkPoint,
p2: *const SkPoint,
exact: bool
) -> bool
[src]
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
[src]
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
[src]
p1: *const SkPoint,
p2: *const SkPoint,
p3: *const SkPoint,
p4: *const SkPoint,
exact: bool
) -> bool
pub unsafe fn isLine(&self, line: *mut SkPoint) -> bool
[src]
pub unsafe fn countPoints(&self) -> c_int
[src]
pub unsafe fn getPoint(&self, index: c_int) -> SkPoint
[src]
pub unsafe fn getPoints(&self, points: *mut SkPoint, max: c_int) -> c_int
[src]
pub unsafe fn countVerbs(&self) -> c_int
[src]
pub unsafe fn getVerbs(&self, verbs: *mut u8, max: c_int) -> c_int
[src]
pub unsafe fn approximateBytesUsed(&self) -> usize
[src]
pub unsafe fn swap(&mut self, other: *mut SkPath)
[src]
pub unsafe fn computeTightBounds(&self) -> SkRect
[src]
pub unsafe fn conservativelyContainsRect(&self, rect: *const SkRect) -> bool
[src]
pub unsafe fn incReserve(&mut self, extraPtCount: c_int)
[src]
pub unsafe fn shrinkToFit(&mut self)
[src]
pub unsafe fn moveTo(&mut self, x: SkScalar, y: SkScalar) -> *mut SkPath
[src]
pub unsafe fn rMoveTo(&mut self, dx: SkScalar, dy: SkScalar) -> *mut SkPath
[src]
pub unsafe fn lineTo(&mut self, x: SkScalar, y: SkScalar) -> *mut SkPath
[src]
pub unsafe fn rLineTo(&mut self, dx: SkScalar, dy: SkScalar) -> *mut SkPath
[src]
pub unsafe fn quadTo(
&mut self,
x1: SkScalar,
y1: SkScalar,
x2: SkScalar,
y2: SkScalar
) -> *mut SkPath
[src]
&mut self,
x1: SkScalar,
y1: SkScalar,
x2: SkScalar,
y2: SkScalar
) -> *mut SkPath
pub unsafe fn rQuadTo(
&mut self,
dx1: SkScalar,
dy1: SkScalar,
dx2: SkScalar,
dy2: SkScalar
) -> *mut SkPath
[src]
&mut self,
dx1: SkScalar,
dy1: SkScalar,
dx2: SkScalar,
dy2: SkScalar
) -> *mut SkPath
pub unsafe fn conicTo(
&mut self,
x1: SkScalar,
y1: SkScalar,
x2: SkScalar,
y2: SkScalar,
w: SkScalar
) -> *mut SkPath
[src]
&mut self,
x1: SkScalar,
y1: SkScalar,
x2: SkScalar,
y2: SkScalar,
w: SkScalar
) -> *mut SkPath
pub unsafe fn rConicTo(
&mut self,
dx1: SkScalar,
dy1: SkScalar,
dx2: SkScalar,
dy2: SkScalar,
w: SkScalar
) -> *mut SkPath
[src]
&mut self,
dx1: SkScalar,
dy1: SkScalar,
dx2: SkScalar,
dy2: SkScalar,
w: SkScalar
) -> *mut SkPath
pub unsafe fn cubicTo(
&mut self,
x1: SkScalar,
y1: SkScalar,
x2: SkScalar,
y2: SkScalar,
x3: SkScalar,
y3: SkScalar
) -> *mut SkPath
[src]
&mut self,
x1: SkScalar,
y1: SkScalar,
x2: SkScalar,
y2: SkScalar,
x3: SkScalar,
y3: SkScalar
) -> *mut SkPath
pub unsafe fn rCubicTo(
&mut self,
dx1: SkScalar,
dy1: SkScalar,
dx2: SkScalar,
dy2: SkScalar,
dx3: SkScalar,
dy3: SkScalar
) -> *mut SkPath
[src]
&mut self,
dx1: SkScalar,
dy1: SkScalar,
dx2: SkScalar,
dy2: SkScalar,
dx3: SkScalar,
dy3: SkScalar
) -> *mut SkPath
pub unsafe fn arcTo(
&mut self,
oval: *const SkRect,
startAngle: SkScalar,
sweepAngle: SkScalar,
forceMoveTo: bool
) -> *mut SkPath
[src]
&mut self,
oval: *const SkRect,
startAngle: SkScalar,
sweepAngle: SkScalar,
forceMoveTo: bool
) -> *mut SkPath
pub unsafe fn arcTo1(
&mut self,
x1: SkScalar,
y1: SkScalar,
x2: SkScalar,
y2: SkScalar,
radius: SkScalar
) -> *mut SkPath
[src]
&mut self,
x1: SkScalar,
y1: SkScalar,
x2: SkScalar,
y2: SkScalar,
radius: SkScalar
) -> *mut SkPath
pub unsafe fn arcTo2(
&mut self,
rx: SkScalar,
ry: SkScalar,
xAxisRotate: SkScalar,
largeArc: SkPath_ArcSize,
sweep: SkPath_Direction,
x: SkScalar,
y: SkScalar
) -> *mut SkPath
[src]
&mut self,
rx: SkScalar,
ry: SkScalar,
xAxisRotate: SkScalar,
largeArc: SkPath_ArcSize,
sweep: SkPath_Direction,
x: SkScalar,
y: SkScalar
) -> *mut SkPath
pub unsafe fn rArcTo(
&mut self,
rx: SkScalar,
ry: SkScalar,
xAxisRotate: SkScalar,
largeArc: SkPath_ArcSize,
sweep: SkPath_Direction,
dx: SkScalar,
dy: SkScalar
) -> *mut SkPath
[src]
&mut self,
rx: SkScalar,
ry: SkScalar,
xAxisRotate: SkScalar,
largeArc: SkPath_ArcSize,
sweep: SkPath_Direction,
dx: SkScalar,
dy: SkScalar
) -> *mut SkPath
pub unsafe fn close(&mut self) -> *mut SkPath
[src]
pub unsafe fn ConvertConicToQuads(
p0: *const SkPoint,
p1: *const SkPoint,
p2: *const SkPoint,
w: SkScalar,
pts: *mut SkPoint,
pow2: c_int
) -> c_int
[src]
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 SkPath_Direction
) -> bool
[src]
&self,
rect: *mut SkRect,
isClosed: *mut bool,
direction: *mut SkPath_Direction
) -> bool
pub unsafe fn isNestedFillRects(
&self,
rect: *mut SkRect,
dirs: *mut SkPath_Direction
) -> bool
[src]
&self,
rect: *mut SkRect,
dirs: *mut SkPath_Direction
) -> bool
pub unsafe fn addRect(
&mut self,
rect: *const SkRect,
dir: SkPath_Direction
) -> *mut SkPath
[src]
&mut self,
rect: *const SkRect,
dir: SkPath_Direction
) -> *mut SkPath
pub unsafe fn addRect1(
&mut self,
rect: *const SkRect,
dir: SkPath_Direction,
start: c_uint
) -> *mut SkPath
[src]
&mut self,
rect: *const SkRect,
dir: SkPath_Direction,
start: c_uint
) -> *mut SkPath
pub unsafe fn addRect2(
&mut self,
left: SkScalar,
top: SkScalar,
right: SkScalar,
bottom: SkScalar,
dir: SkPath_Direction
) -> *mut SkPath
[src]
&mut self,
left: SkScalar,
top: SkScalar,
right: SkScalar,
bottom: SkScalar,
dir: SkPath_Direction
) -> *mut SkPath
pub unsafe fn addOval(
&mut self,
oval: *const SkRect,
dir: SkPath_Direction
) -> *mut SkPath
[src]
&mut self,
oval: *const SkRect,
dir: SkPath_Direction
) -> *mut SkPath
pub unsafe fn addOval1(
&mut self,
oval: *const SkRect,
dir: SkPath_Direction,
start: c_uint
) -> *mut SkPath
[src]
&mut self,
oval: *const SkRect,
dir: SkPath_Direction,
start: c_uint
) -> *mut SkPath
pub unsafe fn addCircle(
&mut self,
x: SkScalar,
y: SkScalar,
radius: SkScalar,
dir: SkPath_Direction
) -> *mut SkPath
[src]
&mut self,
x: SkScalar,
y: SkScalar,
radius: SkScalar,
dir: SkPath_Direction
) -> *mut SkPath
pub unsafe fn addArc(
&mut self,
oval: *const SkRect,
startAngle: SkScalar,
sweepAngle: SkScalar
) -> *mut SkPath
[src]
&mut self,
oval: *const SkRect,
startAngle: SkScalar,
sweepAngle: SkScalar
) -> *mut SkPath
pub unsafe fn addRoundRect(
&mut self,
rect: *const SkRect,
rx: SkScalar,
ry: SkScalar,
dir: SkPath_Direction
) -> *mut SkPath
[src]
&mut self,
rect: *const SkRect,
rx: SkScalar,
ry: SkScalar,
dir: SkPath_Direction
) -> *mut SkPath
pub unsafe fn addRoundRect1(
&mut self,
rect: *const SkRect,
radii: *const SkScalar,
dir: SkPath_Direction
) -> *mut SkPath
[src]
&mut self,
rect: *const SkRect,
radii: *const SkScalar,
dir: SkPath_Direction
) -> *mut SkPath
pub unsafe fn addRRect(
&mut self,
rrect: *const SkRRect,
dir: SkPath_Direction
) -> *mut SkPath
[src]
&mut self,
rrect: *const SkRRect,
dir: SkPath_Direction
) -> *mut SkPath
pub unsafe fn addRRect1(
&mut self,
rrect: *const SkRRect,
dir: SkPath_Direction,
start: c_uint
) -> *mut SkPath
[src]
&mut self,
rrect: *const SkRRect,
dir: SkPath_Direction,
start: c_uint
) -> *mut SkPath
pub unsafe fn addPoly(
&mut self,
pts: *const SkPoint,
count: c_int,
close: bool
) -> *mut SkPath
[src]
&mut self,
pts: *const SkPoint,
count: c_int,
close: bool
) -> *mut SkPath
pub unsafe fn addPath(
&mut self,
src: *const SkPath,
dx: SkScalar,
dy: SkScalar,
mode: SkPath_AddPathMode
) -> *mut SkPath
[src]
&mut self,
src: *const SkPath,
dx: SkScalar,
dy: SkScalar,
mode: SkPath_AddPathMode
) -> *mut SkPath
pub unsafe fn addPath1(
&mut self,
src: *const SkPath,
matrix: *const SkMatrix,
mode: SkPath_AddPathMode
) -> *mut SkPath
[src]
&mut self,
src: *const SkPath,
matrix: *const SkMatrix,
mode: SkPath_AddPathMode
) -> *mut SkPath
pub unsafe fn reverseAddPath(&mut self, src: *const SkPath) -> *mut SkPath
[src]
pub unsafe fn offset(&self, dx: SkScalar, dy: SkScalar, dst: *mut SkPath)
[src]
pub unsafe fn transform(&self, matrix: *const SkMatrix, dst: *mut SkPath)
[src]
pub unsafe fn getLastPt(&self, lastPt: *mut SkPoint) -> bool
[src]
pub unsafe fn setLastPt(&mut self, x: SkScalar, y: SkScalar)
[src]
pub unsafe fn contains(&self, x: SkScalar, y: SkScalar) -> bool
[src]
pub unsafe fn dump(
&self,
stream: *mut SkWStream,
forceClose: bool,
dumpAsHex: bool
)
[src]
&self,
stream: *mut SkWStream,
forceClose: bool,
dumpAsHex: bool
)
pub unsafe fn dump1(&self)
[src]
pub unsafe fn dumpHex(&self)
[src]
pub unsafe fn writeToMemory(&self, buffer: *mut c_void) -> usize
[src]
pub unsafe fn serialize(&self) -> sk_sp<SkData>
[src]
pub unsafe fn readFromMemory(
&mut self,
buffer: *const c_void,
length: usize
) -> usize
[src]
&mut self,
buffer: *const c_void,
length: usize
) -> usize
pub unsafe fn getGenerationID(&self) -> u32
[src]
pub unsafe fn new() -> Self
[src]
pub unsafe fn new1(path: *const SkPath) -> Self
[src]
pub unsafe fn destruct(&mut self)
[src]
Auto Trait Implementations
impl !Send for SkPath
impl Unpin for SkPath
impl !Sync for SkPath
impl !RefUnwindSafe for SkPath
impl !UnwindSafe for SkPath
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,