[][src]Struct skia_bindings::SkCanvas

#[repr(C)]
pub struct SkCanvas {
    pub vtable_: *const SkCanvas__bindgen_vtable,
    pub fMCStack: SkDeque,
    pub fMCRec: *mut SkCanvas_MCRec,
    pub fMCRecStorage: [isize; 512],
    pub fDeviceCMStorage: [isize; 28],
    pub fProps: SkSurfaceProps,
    pub fSaveCount: c_int,
    pub fAllocator: std_unique_ptr,
    pub fSurfaceBase: *mut SkSurface_Base,
    pub fClipRestrictionRect: SkIRect,
    pub fIsScaleTranslate: bool,
    pub fDeviceClipBounds: SkRect,
    pub fAllowSoftClip: bool,
    pub fAllowSimplifyClip: bool,
    pub fScratchGlyphRunBuilder: std_unique_ptr,
}

Fields

vtable_: *const SkCanvas__bindgen_vtablefMCStack: SkDequefMCRec: *mut SkCanvas_MCRecfMCRecStorage: [isize; 512]fDeviceCMStorage: [isize; 28]fProps: SkSurfacePropsfSaveCount: c_intfAllocator: std_unique_ptrfSurfaceBase: *mut SkSurface_BasefClipRestrictionRect: SkIRectfIsScaleTranslate: boolfDeviceClipBounds: SkRectfAllowSoftClip: boolfAllowSimplifyClip: boolfScratchGlyphRunBuilder: std_unique_ptr

Methods

impl SkCanvas[src]

pub unsafe fn MakeRasterDirect(
    info: *const SkImageInfo,
    pixels: *mut c_void,
    rowBytes: usize,
    props: *const SkSurfaceProps
) -> std_unique_ptr
[src]

pub unsafe fn MakeRasterDirectN32(
    width: c_int,
    height: c_int,
    pixels: *mut SkPMColor,
    rowBytes: usize
) -> std_unique_ptr
[src]

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]

pub unsafe fn accessTopLayerPixels(
    &mut self,
    info: *mut SkImageInfo,
    rowBytes: *mut usize,
    origin: *mut SkIPoint
) -> *mut c_void
[src]

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]

pub unsafe fn readPixels1(
    &mut self,
    pixmap: *const SkPixmap,
    srcX: c_int,
    srcY: c_int
) -> bool
[src]

pub unsafe fn readPixels2(
    &mut self,
    bitmap: *const SkBitmap,
    srcX: c_int,
    srcY: c_int
) -> bool
[src]

pub unsafe fn writePixels(
    &mut self,
    info: *const SkImageInfo,
    pixels: *const c_void,
    rowBytes: usize,
    x: c_int,
    y: c_int
) -> bool
[src]

pub unsafe fn writePixels1(
    &mut self,
    bitmap: *const SkBitmap,
    x: c_int,
    y: c_int
) -> bool
[src]

pub unsafe fn save(&mut self) -> c_int[src]

pub unsafe fn saveLayer(
    &mut self,
    bounds: *const SkRect,
    paint: *const SkPaint
) -> c_int
[src]

pub unsafe fn saveLayer1(
    &mut self,
    bounds: *const SkRect,
    paint: *const SkPaint
) -> c_int
[src]

pub unsafe fn saveLayerAlpha(
    &mut self,
    bounds: *const SkRect,
    alpha: U8CPU
) -> c_int
[src]

pub unsafe fn saveLayer2(
    &mut self,
    layerRec: *const SkCanvas_SaveLayerRec
) -> c_int
[src]

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]

pub unsafe fn clipRect1(&mut self, rect: *const SkRect, op: SkClipOp)[src]

pub unsafe fn clipRect2(&mut self, rect: *const SkRect, doAntiAlias: bool)[src]

pub unsafe fn androidFramework_setDeviceClipRestriction(
    &mut self,
    rect: *const SkIRect
)
[src]

pub unsafe fn clipRRect(
    &mut self,
    rrect: *const SkRRect,
    op: SkClipOp,
    doAntiAlias: bool
)
[src]

pub unsafe fn clipRRect1(&mut self, rrect: *const SkRRect, op: SkClipOp)[src]

pub unsafe fn clipRRect2(&mut self, rrect: *const SkRRect, doAntiAlias: bool)[src]

pub unsafe fn clipPath(
    &mut self,
    path: *const SkPath,
    op: SkClipOp,
    doAntiAlias: bool
)
[src]

pub unsafe fn clipPath1(&mut self, path: *const SkPath, op: SkClipOp)[src]

pub unsafe fn clipPath2(&mut self, path: *const SkPath, doAntiAlias: bool)[src]

pub unsafe fn setAllowSimplifyClip(&mut self, allow: bool)[src]

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 getLocalClipBounds1(&self, bounds: *mut SkRect) -> bool[src]

pub unsafe fn getDeviceClipBounds(&self) -> SkIRect[src]

pub unsafe fn getDeviceClipBounds1(&self, bounds: *mut SkIRect) -> bool[src]

pub unsafe fn drawColor(&mut self, color: SkColor, mode: SkBlendMode)[src]

pub unsafe fn clear(&mut self, color: SkColor)[src]

pub unsafe fn discard(&mut self)[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]

pub unsafe fn drawPoint(
    &mut self,
    x: SkScalar,
    y: SkScalar,
    paint: *const SkPaint
)
[src]

pub unsafe fn drawPoint1(&mut self, p: SkPoint, paint: *const SkPaint)[src]

pub unsafe fn drawLine(
    &mut self,
    x0: SkScalar,
    y0: SkScalar,
    x1: SkScalar,
    y1: SkScalar,
    paint: *const SkPaint
)
[src]

pub unsafe fn drawLine1(
    &mut self,
    p0: SkPoint,
    p1: SkPoint,
    paint: *const SkPaint
)
[src]

pub unsafe fn drawRect(&mut self, rect: *const SkRect, paint: *const SkPaint)[src]

pub unsafe fn drawIRect(&mut self, rect: *const SkIRect, paint: *const SkPaint)[src]

pub unsafe fn drawRegion(
    &mut self,
    region: *const SkRegion,
    paint: *const SkPaint
)
[src]

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]

pub unsafe fn drawCircle(
    &mut self,
    cx: SkScalar,
    cy: SkScalar,
    radius: SkScalar,
    paint: *const SkPaint
)
[src]

pub unsafe fn drawCircle1(
    &mut self,
    center: SkPoint,
    radius: SkScalar,
    paint: *const SkPaint
)
[src]

pub unsafe fn drawArc(
    &mut self,
    oval: *const SkRect,
    startAngle: SkScalar,
    sweepAngle: SkScalar,
    useCenter: bool,
    paint: *const SkPaint
)
[src]

pub unsafe fn drawRoundRect(
    &mut self,
    rect: *const SkRect,
    rx: SkScalar,
    ry: SkScalar,
    paint: *const SkPaint
)
[src]

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]

pub unsafe fn drawImage1(
    &mut self,
    image: *const sk_sp<SkImage>,
    left: SkScalar,
    top: SkScalar,
    paint: *const SkPaint
)
[src]

pub unsafe fn drawImageRect(
    &mut self,
    image: *const SkImage,
    src: *const SkRect,
    dst: *const SkRect,
    paint: *const SkPaint,
    constraint: SkCanvas_SrcRectConstraint
)
[src]

pub unsafe fn drawImageRect1(
    &mut self,
    image: *const SkImage,
    isrc: *const SkIRect,
    dst: *const SkRect,
    paint: *const SkPaint,
    constraint: SkCanvas_SrcRectConstraint
)
[src]

pub unsafe fn drawImageRect2(
    &mut self,
    image: *const SkImage,
    dst: *const SkRect,
    paint: *const SkPaint
)
[src]

pub unsafe fn drawImageRect3(
    &mut self,
    image: *const sk_sp<SkImage>,
    src: *const SkRect,
    dst: *const SkRect,
    paint: *const SkPaint,
    constraint: SkCanvas_SrcRectConstraint
)
[src]

pub unsafe fn drawImageRect4(
    &mut self,
    image: *const sk_sp<SkImage>,
    isrc: *const SkIRect,
    dst: *const SkRect,
    paint: *const SkPaint,
    constraint: SkCanvas_SrcRectConstraint
)
[src]

pub unsafe fn drawImageRect5(
    &mut self,
    image: *const sk_sp<SkImage>,
    dst: *const SkRect,
    paint: *const SkPaint
)
[src]

pub unsafe fn drawImageNine(
    &mut self,
    image: *const SkImage,
    center: *const SkIRect,
    dst: *const SkRect,
    paint: *const SkPaint
)
[src]

pub unsafe fn drawImageNine1(
    &mut self,
    image: *const sk_sp<SkImage>,
    center: *const SkIRect,
    dst: *const SkRect,
    paint: *const SkPaint
)
[src]

pub unsafe fn drawBitmap(
    &mut self,
    bitmap: *const SkBitmap,
    left: SkScalar,
    top: SkScalar,
    paint: *const SkPaint
)
[src]

pub unsafe fn drawBitmapRect(
    &mut self,
    bitmap: *const SkBitmap,
    src: *const SkRect,
    dst: *const SkRect,
    paint: *const SkPaint,
    constraint: SkCanvas_SrcRectConstraint
)
[src]

pub unsafe fn drawBitmapRect1(
    &mut self,
    bitmap: *const SkBitmap,
    isrc: *const SkIRect,
    dst: *const SkRect,
    paint: *const SkPaint,
    constraint: SkCanvas_SrcRectConstraint
)
[src]

pub unsafe fn drawBitmapRect2(
    &mut self,
    bitmap: *const SkBitmap,
    dst: *const SkRect,
    paint: *const SkPaint,
    constraint: SkCanvas_SrcRectConstraint
)
[src]

pub unsafe fn drawBitmapNine(
    &mut self,
    bitmap: *const SkBitmap,
    center: *const SkIRect,
    dst: *const SkRect,
    paint: *const SkPaint
)
[src]

pub unsafe fn drawBitmapLattice(
    &mut self,
    bitmap: *const SkBitmap,
    lattice: *const SkCanvas_Lattice,
    dst: *const SkRect,
    paint: *const SkPaint
)
[src]

pub unsafe fn drawImageLattice(
    &mut self,
    image: *const SkImage,
    lattice: *const SkCanvas_Lattice,
    dst: *const SkRect,
    paint: *const SkPaint
)
[src]

pub unsafe fn experimental_DrawEdgeAAQuad(
    &mut self,
    rect: *const SkRect,
    clip: *const SkPoint,
    aaFlags: SkCanvas_QuadAAFlags,
    color: SkColor,
    mode: SkBlendMode
)
[src]

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]

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]

pub unsafe fn drawString(
    &mut self,
    str: *const c_char,
    x: SkScalar,
    y: SkScalar,
    font: *const SkFont,
    paint: *const SkPaint
)
[src]

pub unsafe fn drawString1(
    &mut self,
    str: *const SkString,
    x: SkScalar,
    y: SkScalar,
    font: *const SkFont,
    paint: *const SkPaint
)
[src]

pub unsafe fn drawTextBlob(
    &mut self,
    blob: *const SkTextBlob,
    x: SkScalar,
    y: SkScalar,
    paint: *const SkPaint
)
[src]

pub unsafe fn drawTextBlob1(
    &mut self,
    blob: *const sk_sp<SkTextBlob>,
    x: SkScalar,
    y: SkScalar,
    paint: *const SkPaint
)
[src]

pub unsafe fn drawPicture(&mut self, picture: *const SkPicture)[src]

pub unsafe fn drawPicture1(&mut self, picture: *const sk_sp<SkPicture>)[src]

pub unsafe fn drawPicture2(
    &mut self,
    picture: *const SkPicture,
    matrix: *const SkMatrix,
    paint: *const SkPaint
)
[src]

pub unsafe fn drawPicture3(
    &mut self,
    picture: *const sk_sp<SkPicture>,
    matrix: *const SkMatrix,
    paint: *const SkPaint
)
[src]

pub unsafe fn drawVertices(
    &mut self,
    vertices: *const SkVertices,
    mode: SkBlendMode,
    paint: *const SkPaint
)
[src]

pub unsafe fn drawVertices1(
    &mut self,
    vertices: *const sk_sp<SkVertices>,
    mode: SkBlendMode,
    paint: *const SkPaint
)
[src]

pub unsafe fn drawVertices2(
    &mut self,
    vertices: *const SkVertices,
    bones: *const SkVertices_Bone,
    boneCount: c_int,
    mode: SkBlendMode,
    paint: *const SkPaint
)
[src]

pub unsafe fn drawVertices3(
    &mut self,
    vertices: *const sk_sp<SkVertices>,
    bones: *const SkVertices_Bone,
    boneCount: c_int,
    mode: SkBlendMode,
    paint: *const SkPaint
)
[src]

pub unsafe fn drawPatch(
    &mut self,
    cubics: *const SkPoint,
    colors: *const SkColor,
    texCoords: *const SkPoint,
    mode: SkBlendMode,
    paint: *const SkPaint
)
[src]

pub unsafe fn drawPatch1(
    &mut self,
    cubics: *const SkPoint,
    colors: *const SkColor,
    texCoords: *const SkPoint,
    paint: *const SkPaint
)
[src]

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]

pub unsafe fn drawAtlas1(
    &mut self,
    atlas: *const sk_sp<SkImage>,
    xform: *const SkRSXform,
    tex: *const SkRect,
    colors: *const SkColor,
    count: c_int,
    mode: SkBlendMode,
    cullRect: *const SkRect,
    paint: *const SkPaint
)
[src]

pub unsafe fn drawAtlas2(
    &mut self,
    atlas: *const SkImage,
    xform: *const SkRSXform,
    tex: *const SkRect,
    count: c_int,
    cullRect: *const SkRect,
    paint: *const SkPaint
)
[src]

pub unsafe fn drawAtlas3(
    &mut self,
    atlas: *const sk_sp<SkImage>,
    xform: *const SkRSXform,
    tex: *const SkRect,
    count: c_int,
    cullRect: *const SkRect,
    paint: *const SkPaint
)
[src]

pub unsafe fn drawDrawable(
    &mut self,
    drawable: *mut SkDrawable,
    matrix: *const SkMatrix
)
[src]

pub unsafe fn drawDrawable1(
    &mut self,
    drawable: *mut SkDrawable,
    x: SkScalar,
    y: SkScalar
)
[src]

pub unsafe fn drawAnnotation(
    &mut self,
    rect: *const SkRect,
    key: *const c_char,
    value: *mut SkData
)
[src]

pub unsafe fn drawAnnotation1(
    &mut self,
    rect: *const SkRect,
    key: *const c_char,
    value: *const sk_sp<SkData>
)
[src]

pub unsafe fn getTotalMatrix(&self) -> *const SkMatrix[src]

pub unsafe fn internal_private_getTopLayerBounds(&self) -> SkIRect[src]

pub unsafe fn legacy_drawImageRect(
    &mut self,
    image: *const SkImage,
    src: *const SkRect,
    dst: *const SkRect,
    paint: *const SkPaint,
    constraint: SkCanvas_SrcRectConstraint
)
[src]

pub unsafe fn legacy_drawBitmapRect(
    &mut self,
    bitmap: *const SkBitmap,
    src: *const SkRect,
    dst: *const SkRect,
    paint: *const SkPaint,
    constraint: SkCanvas_SrcRectConstraint
)
[src]

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]

pub unsafe fn clipRectBounds(
    &mut self,
    bounds: *const SkRect,
    flags: SkCanvas_SaveLayerFlags,
    intersection: *mut SkIRect,
    imageFilter: *const SkImageFilter
) -> bool
[src]

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]

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]

pub unsafe fn new5(bounds: *const SkIRect) -> Self[src]

Auto Trait Implementations

impl !Sync for SkCanvas

impl !Send for SkCanvas

impl Unpin for SkCanvas

impl RefUnwindSafe for SkCanvas

impl UnwindSafe for SkCanvas

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]