[−][src]Struct skia_bindings::SkCanvas
Fields
vtable_: *const SkCanvas__bindgen_vtable
fMCStack: SkDeque
fMCRec: *mut SkCanvas_MCRec
fMCRecStorage: [isize; 512]
fDeviceCMStorage: [isize; 28]
fProps: SkSurfaceProps
fSaveCount: c_int
fAllocator: u64
fSurfaceBase: *mut SkSurface_Base
fClipRestrictionRect: SkIRect
fIsScaleTranslate: bool
fDeviceClipBounds: SkRect
fAllowSoftClip: bool
fAllowSimplifyClip: bool
fScratchGlyphRunBuilder: u64
Methods
impl SkCanvas
[src]
pub unsafe fn MakeRasterDirect(
info: *const SkImageInfo,
pixels: *mut c_void,
rowBytes: usize,
props: *const SkSurfaceProps
) -> u64
[src]
info: *const SkImageInfo,
pixels: *mut c_void,
rowBytes: usize,
props: *const SkSurfaceProps
) -> u64
pub unsafe fn imageInfo(&self) -> SkImageInfo
[src]
pub unsafe fn getProps(&self, props: *mut SkSurfaceProps) -> bool
[src]
pub unsafe fn flush(&mut self)
[src]
pub unsafe fn makeSurface(
&mut self,
info: *const SkImageInfo,
props: *const SkSurfaceProps
) -> sk_sp<SkSurface>
[src]
&mut self,
info: *const SkImageInfo,
props: *const SkSurfaceProps
) -> sk_sp<SkSurface>
pub unsafe fn accessTopLayerPixels(
&mut self,
info: *mut SkImageInfo,
rowBytes: *mut usize,
origin: *mut SkIPoint
) -> *mut c_void
[src]
&mut self,
info: *mut SkImageInfo,
rowBytes: *mut usize,
origin: *mut SkIPoint
) -> *mut c_void
pub unsafe fn accessTopRasterHandle(&self) -> SkRasterHandleAllocator_Handle
[src]
pub unsafe fn peekPixels(&mut self, pixmap: *mut SkPixmap) -> bool
[src]
pub unsafe fn readPixels(
&mut self,
dstInfo: *const SkImageInfo,
dstPixels: *mut c_void,
dstRowBytes: usize,
srcX: c_int,
srcY: c_int
) -> bool
[src]
&mut self,
dstInfo: *const SkImageInfo,
dstPixels: *mut c_void,
dstRowBytes: usize,
srcX: c_int,
srcY: c_int
) -> bool
pub unsafe fn readPixels1(
&mut self,
pixmap: *const SkPixmap,
srcX: c_int,
srcY: c_int
) -> bool
[src]
&mut self,
pixmap: *const SkPixmap,
srcX: c_int,
srcY: c_int
) -> bool
pub unsafe fn readPixels2(
&mut self,
bitmap: *const SkBitmap,
srcX: c_int,
srcY: c_int
) -> bool
[src]
&mut self,
bitmap: *const SkBitmap,
srcX: c_int,
srcY: c_int
) -> bool
pub unsafe fn writePixels(
&mut self,
info: *const SkImageInfo,
pixels: *const c_void,
rowBytes: usize,
x: c_int,
y: c_int
) -> bool
[src]
&mut self,
info: *const SkImageInfo,
pixels: *const c_void,
rowBytes: usize,
x: c_int,
y: c_int
) -> bool
pub unsafe fn writePixels1(
&mut self,
bitmap: *const SkBitmap,
x: c_int,
y: c_int
) -> bool
[src]
&mut self,
bitmap: *const SkBitmap,
x: c_int,
y: c_int
) -> bool
pub unsafe fn save(&mut self) -> c_int
[src]
pub unsafe fn saveLayer(
&mut self,
bounds: *const SkRect,
paint: *const SkPaint
) -> c_int
[src]
&mut self,
bounds: *const SkRect,
paint: *const SkPaint
) -> c_int
pub unsafe fn saveLayerAlpha(
&mut self,
bounds: *const SkRect,
alpha: U8CPU
) -> c_int
[src]
&mut self,
bounds: *const SkRect,
alpha: U8CPU
) -> c_int
pub unsafe fn saveLayer1(
&mut self,
layerRec: *const SkCanvas_SaveLayerRec
) -> c_int
[src]
&mut self,
layerRec: *const SkCanvas_SaveLayerRec
) -> c_int
pub unsafe fn restore(&mut self)
[src]
pub unsafe fn getSaveCount(&self) -> c_int
[src]
pub unsafe fn restoreToCount(&mut self, saveCount: c_int)
[src]
pub unsafe fn translate(&mut self, dx: SkScalar, dy: SkScalar)
[src]
pub unsafe fn scale(&mut self, sx: SkScalar, sy: SkScalar)
[src]
pub unsafe fn rotate(&mut self, degrees: SkScalar)
[src]
pub unsafe fn rotate1(&mut self, degrees: SkScalar, px: SkScalar, py: SkScalar)
[src]
pub unsafe fn skew(&mut self, sx: SkScalar, sy: SkScalar)
[src]
pub unsafe fn concat(&mut self, matrix: *const SkMatrix)
[src]
pub unsafe fn setMatrix(&mut self, matrix: *const SkMatrix)
[src]
pub unsafe fn resetMatrix(&mut self)
[src]
pub unsafe fn clipRect(
&mut self,
rect: *const SkRect,
op: SkClipOp,
doAntiAlias: bool
)
[src]
&mut self,
rect: *const SkRect,
op: SkClipOp,
doAntiAlias: bool
)
pub unsafe fn androidFramework_setDeviceClipRestriction(
&mut self,
rect: *const SkIRect
)
[src]
&mut self,
rect: *const SkIRect
)
pub unsafe fn clipRRect(
&mut self,
rrect: *const SkRRect,
op: SkClipOp,
doAntiAlias: bool
)
[src]
&mut self,
rrect: *const SkRRect,
op: SkClipOp,
doAntiAlias: bool
)
pub unsafe fn clipPath(
&mut self,
path: *const SkPath,
op: SkClipOp,
doAntiAlias: bool
)
[src]
&mut self,
path: *const SkPath,
op: SkClipOp,
doAntiAlias: bool
)
pub unsafe fn clipRegion(&mut self, deviceRgn: *const SkRegion, op: SkClipOp)
[src]
pub unsafe fn quickReject(&self, rect: *const SkRect) -> bool
[src]
pub unsafe fn quickReject1(&self, path: *const SkPath) -> bool
[src]
pub unsafe fn getLocalClipBounds(&self) -> SkRect
[src]
pub unsafe fn getDeviceClipBounds(&self) -> SkIRect
[src]
pub unsafe fn drawColor(&mut self, color: SkColor, mode: SkBlendMode)
[src]
pub unsafe fn drawPaint(&mut self, paint: *const SkPaint)
[src]
pub unsafe fn drawPoints(
&mut self,
mode: SkCanvas_PointMode,
count: usize,
pts: *const SkPoint,
paint: *const SkPaint
)
[src]
&mut self,
mode: SkCanvas_PointMode,
count: usize,
pts: *const SkPoint,
paint: *const SkPaint
)
pub unsafe fn drawPoint(
&mut self,
x: SkScalar,
y: SkScalar,
paint: *const SkPaint
)
[src]
&mut self,
x: SkScalar,
y: SkScalar,
paint: *const SkPaint
)
pub unsafe fn drawLine(
&mut self,
x0: SkScalar,
y0: SkScalar,
x1: SkScalar,
y1: SkScalar,
paint: *const SkPaint
)
[src]
&mut self,
x0: SkScalar,
y0: SkScalar,
x1: SkScalar,
y1: SkScalar,
paint: *const SkPaint
)
pub unsafe fn drawRect(&mut self, rect: *const SkRect, paint: *const SkPaint)
[src]
pub unsafe fn drawRegion(
&mut self,
region: *const SkRegion,
paint: *const SkPaint
)
[src]
&mut self,
region: *const SkRegion,
paint: *const SkPaint
)
pub unsafe fn drawOval(&mut self, oval: *const SkRect, paint: *const SkPaint)
[src]
pub unsafe fn drawRRect(&mut self, rrect: *const SkRRect, paint: *const SkPaint)
[src]
pub unsafe fn drawDRRect(
&mut self,
outer: *const SkRRect,
inner: *const SkRRect,
paint: *const SkPaint
)
[src]
&mut self,
outer: *const SkRRect,
inner: *const SkRRect,
paint: *const SkPaint
)
pub unsafe fn drawCircle(
&mut self,
cx: SkScalar,
cy: SkScalar,
radius: SkScalar,
paint: *const SkPaint
)
[src]
&mut self,
cx: SkScalar,
cy: SkScalar,
radius: SkScalar,
paint: *const SkPaint
)
pub unsafe fn drawArc(
&mut self,
oval: *const SkRect,
startAngle: SkScalar,
sweepAngle: SkScalar,
useCenter: bool,
paint: *const SkPaint
)
[src]
&mut self,
oval: *const SkRect,
startAngle: SkScalar,
sweepAngle: SkScalar,
useCenter: bool,
paint: *const SkPaint
)
pub unsafe fn drawRoundRect(
&mut self,
rect: *const SkRect,
rx: SkScalar,
ry: SkScalar,
paint: *const SkPaint
)
[src]
&mut self,
rect: *const SkRect,
rx: SkScalar,
ry: SkScalar,
paint: *const SkPaint
)
pub unsafe fn drawPath(&mut self, path: *const SkPath, paint: *const SkPaint)
[src]
pub unsafe fn drawImage(
&mut self,
image: *const SkImage,
left: SkScalar,
top: SkScalar,
paint: *const SkPaint
)
[src]
&mut self,
image: *const SkImage,
left: SkScalar,
top: SkScalar,
paint: *const SkPaint
)
pub unsafe fn drawImageRect(
&mut self,
image: *const SkImage,
src: *const SkRect,
dst: *const SkRect,
paint: *const SkPaint,
constraint: SkCanvas_SrcRectConstraint
)
[src]
&mut self,
image: *const SkImage,
src: *const SkRect,
dst: *const SkRect,
paint: *const SkPaint,
constraint: SkCanvas_SrcRectConstraint
)
pub unsafe fn drawImageRect1(
&mut self,
image: *const SkImage,
isrc: *const SkIRect,
dst: *const SkRect,
paint: *const SkPaint,
constraint: SkCanvas_SrcRectConstraint
)
[src]
&mut self,
image: *const SkImage,
isrc: *const SkIRect,
dst: *const SkRect,
paint: *const SkPaint,
constraint: SkCanvas_SrcRectConstraint
)
pub unsafe fn drawImageRect2(
&mut self,
image: *const SkImage,
dst: *const SkRect,
paint: *const SkPaint
)
[src]
&mut self,
image: *const SkImage,
dst: *const SkRect,
paint: *const SkPaint
)
pub unsafe fn drawImageNine(
&mut self,
image: *const SkImage,
center: *const SkIRect,
dst: *const SkRect,
paint: *const SkPaint
)
[src]
&mut self,
image: *const SkImage,
center: *const SkIRect,
dst: *const SkRect,
paint: *const SkPaint
)
pub unsafe fn drawBitmap(
&mut self,
bitmap: *const SkBitmap,
left: SkScalar,
top: SkScalar,
paint: *const SkPaint
)
[src]
&mut self,
bitmap: *const SkBitmap,
left: SkScalar,
top: SkScalar,
paint: *const SkPaint
)
pub unsafe fn drawBitmapRect(
&mut self,
bitmap: *const SkBitmap,
src: *const SkRect,
dst: *const SkRect,
paint: *const SkPaint,
constraint: SkCanvas_SrcRectConstraint
)
[src]
&mut self,
bitmap: *const SkBitmap,
src: *const SkRect,
dst: *const SkRect,
paint: *const SkPaint,
constraint: SkCanvas_SrcRectConstraint
)
pub unsafe fn drawBitmapRect1(
&mut self,
bitmap: *const SkBitmap,
isrc: *const SkIRect,
dst: *const SkRect,
paint: *const SkPaint,
constraint: SkCanvas_SrcRectConstraint
)
[src]
&mut self,
bitmap: *const SkBitmap,
isrc: *const SkIRect,
dst: *const SkRect,
paint: *const SkPaint,
constraint: SkCanvas_SrcRectConstraint
)
pub unsafe fn drawBitmapRect2(
&mut self,
bitmap: *const SkBitmap,
dst: *const SkRect,
paint: *const SkPaint,
constraint: SkCanvas_SrcRectConstraint
)
[src]
&mut self,
bitmap: *const SkBitmap,
dst: *const SkRect,
paint: *const SkPaint,
constraint: SkCanvas_SrcRectConstraint
)
pub unsafe fn drawBitmapNine(
&mut self,
bitmap: *const SkBitmap,
center: *const SkIRect,
dst: *const SkRect,
paint: *const SkPaint
)
[src]
&mut self,
bitmap: *const SkBitmap,
center: *const SkIRect,
dst: *const SkRect,
paint: *const SkPaint
)
pub unsafe fn drawBitmapLattice(
&mut self,
bitmap: *const SkBitmap,
lattice: *const SkCanvas_Lattice,
dst: *const SkRect,
paint: *const SkPaint
)
[src]
&mut self,
bitmap: *const SkBitmap,
lattice: *const SkCanvas_Lattice,
dst: *const SkRect,
paint: *const SkPaint
)
pub unsafe fn drawImageLattice(
&mut self,
image: *const SkImage,
lattice: *const SkCanvas_Lattice,
dst: *const SkRect,
paint: *const SkPaint
)
[src]
&mut self,
image: *const SkImage,
lattice: *const SkCanvas_Lattice,
dst: *const SkRect,
paint: *const SkPaint
)
pub unsafe fn experimental_DrawEdgeAAQuad(
&mut self,
rect: *const SkRect,
clip: *const SkPoint,
aaFlags: SkCanvas_QuadAAFlags,
color: SkColor,
mode: SkBlendMode
)
[src]
&mut self,
rect: *const SkRect,
clip: *const SkPoint,
aaFlags: SkCanvas_QuadAAFlags,
color: SkColor,
mode: SkBlendMode
)
pub unsafe fn experimental_DrawEdgeAAImageSet(
&mut self,
imageSet: *const SkCanvas_ImageSetEntry,
cnt: c_int,
dstClips: *const SkPoint,
preViewMatrices: *const SkMatrix,
paint: *const SkPaint,
constraint: SkCanvas_SrcRectConstraint
)
[src]
&mut self,
imageSet: *const SkCanvas_ImageSetEntry,
cnt: c_int,
dstClips: *const SkPoint,
preViewMatrices: *const SkMatrix,
paint: *const SkPaint,
constraint: SkCanvas_SrcRectConstraint
)
pub unsafe fn drawSimpleText(
&mut self,
text: *const c_void,
byteLength: usize,
encoding: SkTextEncoding,
x: SkScalar,
y: SkScalar,
font: *const SkFont,
paint: *const SkPaint
)
[src]
&mut self,
text: *const c_void,
byteLength: usize,
encoding: SkTextEncoding,
x: SkScalar,
y: SkScalar,
font: *const SkFont,
paint: *const SkPaint
)
pub unsafe fn drawTextBlob(
&mut self,
blob: *const SkTextBlob,
x: SkScalar,
y: SkScalar,
paint: *const SkPaint
)
[src]
&mut self,
blob: *const SkTextBlob,
x: SkScalar,
y: SkScalar,
paint: *const SkPaint
)
pub unsafe fn drawPicture(
&mut self,
picture: *const SkPicture,
matrix: *const SkMatrix,
paint: *const SkPaint
)
[src]
&mut self,
picture: *const SkPicture,
matrix: *const SkMatrix,
paint: *const SkPaint
)
pub unsafe fn drawVertices(
&mut self,
vertices: *const SkVertices,
mode: SkBlendMode,
paint: *const SkPaint
)
[src]
&mut self,
vertices: *const SkVertices,
mode: SkBlendMode,
paint: *const SkPaint
)
pub unsafe fn drawVertices1(
&mut self,
vertices: *const sk_sp<SkVertices>,
mode: SkBlendMode,
paint: *const SkPaint
)
[src]
&mut self,
vertices: *const sk_sp<SkVertices>,
mode: SkBlendMode,
paint: *const SkPaint
)
pub unsafe fn drawVertices2(
&mut self,
vertices: *const SkVertices,
bones: *const SkVertices_Bone,
boneCount: c_int,
mode: SkBlendMode,
paint: *const SkPaint
)
[src]
&mut self,
vertices: *const SkVertices,
bones: *const SkVertices_Bone,
boneCount: c_int,
mode: SkBlendMode,
paint: *const SkPaint
)
pub unsafe fn drawVertices3(
&mut self,
vertices: *const sk_sp<SkVertices>,
bones: *const SkVertices_Bone,
boneCount: c_int,
mode: SkBlendMode,
paint: *const SkPaint
)
[src]
&mut self,
vertices: *const sk_sp<SkVertices>,
bones: *const SkVertices_Bone,
boneCount: c_int,
mode: SkBlendMode,
paint: *const SkPaint
)
pub unsafe fn drawPatch(
&mut self,
cubics: *const SkPoint,
colors: *const SkColor,
texCoords: *const SkPoint,
mode: SkBlendMode,
paint: *const SkPaint
)
[src]
&mut self,
cubics: *const SkPoint,
colors: *const SkColor,
texCoords: *const SkPoint,
mode: SkBlendMode,
paint: *const SkPaint
)
pub unsafe fn drawAtlas(
&mut self,
atlas: *const SkImage,
xform: *const SkRSXform,
tex: *const SkRect,
colors: *const SkColor,
count: c_int,
mode: SkBlendMode,
cullRect: *const SkRect,
paint: *const SkPaint
)
[src]
&mut self,
atlas: *const SkImage,
xform: *const SkRSXform,
tex: *const SkRect,
colors: *const SkColor,
count: c_int,
mode: SkBlendMode,
cullRect: *const SkRect,
paint: *const SkPaint
)
pub unsafe fn drawDrawable(
&mut self,
drawable: *mut SkDrawable,
matrix: *const SkMatrix
)
[src]
&mut self,
drawable: *mut SkDrawable,
matrix: *const SkMatrix
)
pub unsafe fn drawDrawable1(
&mut self,
drawable: *mut SkDrawable,
x: SkScalar,
y: SkScalar
)
[src]
&mut self,
drawable: *mut SkDrawable,
x: SkScalar,
y: SkScalar
)
pub unsafe fn drawAnnotation(
&mut self,
rect: *const SkRect,
key: *const c_char,
value: *mut SkData
)
[src]
&mut self,
rect: *const SkRect,
key: *const c_char,
value: *mut SkData
)
pub unsafe fn getTotalMatrix(&self) -> *const SkMatrix
[src]
pub unsafe fn legacy_drawImageRect(
&mut self,
image: *const SkImage,
src: *const SkRect,
dst: *const SkRect,
paint: *const SkPaint,
constraint: SkCanvas_SrcRectConstraint
)
[src]
&mut self,
image: *const SkImage,
src: *const SkRect,
dst: *const SkRect,
paint: *const SkPaint,
constraint: SkCanvas_SrcRectConstraint
)
pub unsafe fn legacy_drawBitmapRect(
&mut self,
bitmap: *const SkBitmap,
src: *const SkRect,
dst: *const SkRect,
paint: *const SkPaint,
constraint: SkCanvas_SrcRectConstraint
)
[src]
&mut self,
bitmap: *const SkBitmap,
src: *const SkRect,
dst: *const SkRect,
paint: *const SkPaint,
constraint: SkCanvas_SrcRectConstraint
)
pub unsafe fn temporary_internal_getRgnClip(&mut self, region: *mut SkRegion)
[src]
pub unsafe fn private_draw_shadow_rec(
&mut self,
arg1: *const SkPath,
arg2: *const SkDrawShadowRec
)
[src]
&mut self,
arg1: *const SkPath,
arg2: *const SkDrawShadowRec
)
pub unsafe fn clipRectBounds(
&mut self,
bounds: *const SkRect,
flags: SkCanvas_SaveLayerFlags,
intersection: *mut SkIRect,
imageFilter: *const SkImageFilter
) -> bool
[src]
&mut self,
bounds: *const SkRect,
flags: SkCanvas_SaveLayerFlags,
intersection: *mut SkIRect,
imageFilter: *const SkImageFilter
) -> bool
pub unsafe fn getTopDevice(&self) -> *mut SkBaseDevice
[src]
pub unsafe fn new() -> Self
[src]
pub unsafe fn new1(
width: c_int,
height: c_int,
props: *const SkSurfaceProps
) -> Self
[src]
width: c_int,
height: c_int,
props: *const SkSurfaceProps
) -> Self
pub unsafe fn new2(device: sk_sp<SkBaseDevice>) -> Self
[src]
pub unsafe fn new3(bitmap: *const SkBitmap) -> Self
[src]
pub unsafe fn new4(
bitmap: *const SkBitmap,
props: *const SkSurfaceProps
) -> Self
[src]
bitmap: *const SkBitmap,
props: *const SkSurfaceProps
) -> Self
pub unsafe fn new5(bounds: *const SkIRect) -> Self
[src]
Auto Trait Implementations
impl !Send for SkCanvas
impl Unpin for SkCanvas
impl !Sync for SkCanvas
impl UnwindSafe for SkCanvas
impl RefUnwindSafe for SkCanvas
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> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,