[−][src]Struct skia_bindings::SkSurface
Fields
_bindgen_opaque_blob: [u64; 4]
Methods
impl SkSurface
[src]
pub unsafe fn MakeRasterDirect(
imageInfo: *const SkImageInfo,
pixels: *mut c_void,
rowBytes: usize,
surfaceProps: *const SkSurfaceProps
) -> sk_sp<SkSurface>
[src]
imageInfo: *const SkImageInfo,
pixels: *mut c_void,
rowBytes: usize,
surfaceProps: *const SkSurfaceProps
) -> sk_sp<SkSurface>
pub unsafe fn MakeRasterDirectReleaseProc(
imageInfo: *const SkImageInfo,
pixels: *mut c_void,
rowBytes: usize,
releaseProc: Option<unsafe extern "C" fn(pixels: *mut c_void, context: *mut c_void)>,
context: *mut c_void,
surfaceProps: *const SkSurfaceProps
) -> sk_sp<SkSurface>
[src]
imageInfo: *const SkImageInfo,
pixels: *mut c_void,
rowBytes: usize,
releaseProc: Option<unsafe extern "C" fn(pixels: *mut c_void, context: *mut c_void)>,
context: *mut c_void,
surfaceProps: *const SkSurfaceProps
) -> sk_sp<SkSurface>
pub unsafe fn MakeRaster(
imageInfo: *const SkImageInfo,
rowBytes: usize,
surfaceProps: *const SkSurfaceProps
) -> sk_sp<SkSurface>
[src]
imageInfo: *const SkImageInfo,
rowBytes: usize,
surfaceProps: *const SkSurfaceProps
) -> sk_sp<SkSurface>
pub unsafe fn MakeRasterN32Premul(
width: c_int,
height: c_int,
surfaceProps: *const SkSurfaceProps
) -> sk_sp<SkSurface>
[src]
width: c_int,
height: c_int,
surfaceProps: *const SkSurfaceProps
) -> sk_sp<SkSurface>
pub unsafe fn MakeFromBackendTexture(
context: *mut GrContext,
backendTexture: *const GrBackendTexture,
origin: GrSurfaceOrigin,
sampleCnt: c_int,
colorType: SkColorType,
colorSpace: sk_sp<SkColorSpace>,
surfaceProps: *const SkSurfaceProps,
textureReleaseProc: SkSurface_TextureReleaseProc,
releaseContext: SkSurface_ReleaseContext
) -> sk_sp<SkSurface>
[src]
context: *mut GrContext,
backendTexture: *const GrBackendTexture,
origin: GrSurfaceOrigin,
sampleCnt: c_int,
colorType: SkColorType,
colorSpace: sk_sp<SkColorSpace>,
surfaceProps: *const SkSurfaceProps,
textureReleaseProc: SkSurface_TextureReleaseProc,
releaseContext: SkSurface_ReleaseContext
) -> sk_sp<SkSurface>
pub unsafe fn MakeFromBackendRenderTarget(
context: *mut GrContext,
backendRenderTarget: *const GrBackendRenderTarget,
origin: GrSurfaceOrigin,
colorType: SkColorType,
colorSpace: sk_sp<SkColorSpace>,
surfaceProps: *const SkSurfaceProps,
releaseProc: SkSurface_RenderTargetReleaseProc,
releaseContext: SkSurface_ReleaseContext
) -> sk_sp<SkSurface>
[src]
context: *mut GrContext,
backendRenderTarget: *const GrBackendRenderTarget,
origin: GrSurfaceOrigin,
colorType: SkColorType,
colorSpace: sk_sp<SkColorSpace>,
surfaceProps: *const SkSurfaceProps,
releaseProc: SkSurface_RenderTargetReleaseProc,
releaseContext: SkSurface_ReleaseContext
) -> sk_sp<SkSurface>
pub unsafe fn MakeFromBackendTextureAsRenderTarget(
context: *mut GrContext,
backendTexture: *const GrBackendTexture,
origin: GrSurfaceOrigin,
sampleCnt: c_int,
colorType: SkColorType,
colorSpace: sk_sp<SkColorSpace>,
surfaceProps: *const SkSurfaceProps
) -> sk_sp<SkSurface>
[src]
context: *mut GrContext,
backendTexture: *const GrBackendTexture,
origin: GrSurfaceOrigin,
sampleCnt: c_int,
colorType: SkColorType,
colorSpace: sk_sp<SkColorSpace>,
surfaceProps: *const SkSurfaceProps
) -> sk_sp<SkSurface>
pub unsafe fn MakeRenderTarget(
context: *mut GrContext,
budgeted: SkBudgeted,
imageInfo: *const SkImageInfo,
sampleCount: c_int,
surfaceOrigin: GrSurfaceOrigin,
surfaceProps: *const SkSurfaceProps,
shouldCreateWithMips: bool
) -> sk_sp<SkSurface>
[src]
context: *mut GrContext,
budgeted: SkBudgeted,
imageInfo: *const SkImageInfo,
sampleCount: c_int,
surfaceOrigin: GrSurfaceOrigin,
surfaceProps: *const SkSurfaceProps,
shouldCreateWithMips: bool
) -> sk_sp<SkSurface>
pub unsafe fn MakeRenderTarget1(
context: *mut GrRecordingContext,
characterization: *const SkSurfaceCharacterization,
budgeted: SkBudgeted
) -> sk_sp<SkSurface>
[src]
context: *mut GrRecordingContext,
characterization: *const SkSurfaceCharacterization,
budgeted: SkBudgeted
) -> sk_sp<SkSurface>
pub unsafe fn MakeFromBackendTexture1(
context: *mut GrContext,
characterzation: *const SkSurfaceCharacterization,
backendTexture: *const GrBackendTexture,
textureReleaseProc: SkSurface_TextureReleaseProc,
releaseContext: SkSurface_ReleaseContext
) -> sk_sp<SkSurface>
[src]
context: *mut GrContext,
characterzation: *const SkSurfaceCharacterization,
backendTexture: *const GrBackendTexture,
textureReleaseProc: SkSurface_TextureReleaseProc,
releaseContext: SkSurface_ReleaseContext
) -> sk_sp<SkSurface>
pub unsafe fn isCompatible(
&self,
characterization: *const SkSurfaceCharacterization
) -> bool
[src]
&self,
characterization: *const SkSurfaceCharacterization
) -> bool
pub unsafe fn MakeNull(width: c_int, height: c_int) -> sk_sp<SkSurface>
[src]
pub unsafe fn imageInfo(&mut self) -> SkImageInfo
[src]
pub unsafe fn generationID(&mut self) -> u32
[src]
pub unsafe fn notifyContentWillChange(
&mut self,
mode: SkSurface_ContentChangeMode
)
[src]
&mut self,
mode: SkSurface_ContentChangeMode
)
pub unsafe fn getBackendTexture(
&mut self,
backendHandleAccess: SkSurface_BackendHandleAccess
) -> GrBackendTexture
[src]
&mut self,
backendHandleAccess: SkSurface_BackendHandleAccess
) -> GrBackendTexture
pub unsafe fn getBackendRenderTarget(
&mut self,
backendHandleAccess: SkSurface_BackendHandleAccess
) -> GrBackendRenderTarget
[src]
&mut self,
backendHandleAccess: SkSurface_BackendHandleAccess
) -> GrBackendRenderTarget
pub unsafe fn replaceBackendTexture(
&mut self,
backendTexture: *const GrBackendTexture,
origin: GrSurfaceOrigin,
textureReleaseProc: SkSurface_TextureReleaseProc,
releaseContext: SkSurface_ReleaseContext
) -> bool
[src]
&mut self,
backendTexture: *const GrBackendTexture,
origin: GrSurfaceOrigin,
textureReleaseProc: SkSurface_TextureReleaseProc,
releaseContext: SkSurface_ReleaseContext
) -> bool
pub unsafe fn getCanvas(&mut self) -> *mut SkCanvas
[src]
pub unsafe fn makeSurface(
&mut self,
imageInfo: *const SkImageInfo
) -> sk_sp<SkSurface>
[src]
&mut self,
imageInfo: *const SkImageInfo
) -> sk_sp<SkSurface>
pub unsafe fn makeSurface1(
&mut self,
width: c_int,
height: c_int
) -> sk_sp<SkSurface>
[src]
&mut self,
width: c_int,
height: c_int
) -> sk_sp<SkSurface>
pub unsafe fn makeImageSnapshot(&mut self) -> sk_sp<SkImage>
[src]
pub unsafe fn makeImageSnapshot1(
&mut self,
bounds: *const SkIRect
) -> sk_sp<SkImage>
[src]
&mut self,
bounds: *const SkIRect
) -> sk_sp<SkImage>
pub unsafe fn draw(
&mut self,
canvas: *mut SkCanvas,
x: SkScalar,
y: SkScalar,
paint: *const SkPaint
)
[src]
&mut self,
canvas: *mut SkCanvas,
x: SkScalar,
y: SkScalar,
paint: *const SkPaint
)
pub unsafe fn peekPixels(&mut self, pixmap: *mut SkPixmap) -> bool
[src]
pub unsafe fn readPixels(
&mut self,
dst: *const SkPixmap,
srcX: c_int,
srcY: c_int
) -> bool
[src]
&mut self,
dst: *const SkPixmap,
srcX: c_int,
srcY: c_int
) -> bool
pub unsafe fn readPixels1(
&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 readPixels2(
&mut self,
dst: *const SkBitmap,
srcX: c_int,
srcY: c_int
) -> bool
[src]
&mut self,
dst: *const SkBitmap,
srcX: c_int,
srcY: c_int
) -> bool
pub unsafe fn asyncRescaleAndReadPixels(
&mut self,
info: *const SkImageInfo,
srcRect: *const SkIRect,
rescaleGamma: SkSurface_RescaleGamma,
rescaleQuality: SkFilterQuality,
callback: SkSurface_ReadPixelsCallback,
context: SkSurface_ReadPixelsContext
)
[src]
&mut self,
info: *const SkImageInfo,
srcRect: *const SkIRect,
rescaleGamma: SkSurface_RescaleGamma,
rescaleQuality: SkFilterQuality,
callback: SkSurface_ReadPixelsCallback,
context: SkSurface_ReadPixelsContext
)
pub unsafe fn asyncRescaleAndReadPixelsYUV420(
&mut self,
yuvColorSpace: SkYUVColorSpace,
dstColorSpace: sk_sp<SkColorSpace>,
srcRect: *const SkIRect,
dstW: c_int,
dstH: c_int,
rescaleGamma: SkSurface_RescaleGamma,
rescaleQuality: SkFilterQuality,
callback: SkSurface_ReadPixelsCallbackYUV420,
arg1: SkSurface_ReadPixelsContext
)
[src]
&mut self,
yuvColorSpace: SkYUVColorSpace,
dstColorSpace: sk_sp<SkColorSpace>,
srcRect: *const SkIRect,
dstW: c_int,
dstH: c_int,
rescaleGamma: SkSurface_RescaleGamma,
rescaleQuality: SkFilterQuality,
callback: SkSurface_ReadPixelsCallbackYUV420,
arg1: SkSurface_ReadPixelsContext
)
pub unsafe fn writePixels(
&mut self,
src: *const SkPixmap,
dstX: c_int,
dstY: c_int
)
[src]
&mut self,
src: *const SkPixmap,
dstX: c_int,
dstY: c_int
)
pub unsafe fn writePixels1(
&mut self,
src: *const SkBitmap,
dstX: c_int,
dstY: c_int
)
[src]
&mut self,
src: *const SkBitmap,
dstX: c_int,
dstY: c_int
)
pub unsafe fn flush(&mut self)
[src]
pub unsafe fn flush1(
&mut self,
access: SkSurface_BackendSurfaceAccess,
info: *const GrFlushInfo
) -> GrSemaphoresSubmitted
[src]
&mut self,
access: SkSurface_BackendSurfaceAccess,
info: *const GrFlushInfo
) -> GrSemaphoresSubmitted
pub unsafe fn flush2(
&mut self,
access: SkSurface_BackendSurfaceAccess,
flags: GrFlushFlags,
numSemaphores: c_int,
signalSemaphores: *mut GrBackendSemaphore,
finishedProc: GrGpuFinishedProc,
finishedContext: GrGpuFinishedContext
) -> GrSemaphoresSubmitted
[src]
&mut self,
access: SkSurface_BackendSurfaceAccess,
flags: GrFlushFlags,
numSemaphores: c_int,
signalSemaphores: *mut GrBackendSemaphore,
finishedProc: GrGpuFinishedProc,
finishedContext: GrGpuFinishedContext
) -> GrSemaphoresSubmitted
pub unsafe fn flush3(
&mut self,
access: SkSurface_BackendSurfaceAccess,
flags: SkSurface_FlushFlags,
numSemaphores: c_int,
signalSemaphores: *mut GrBackendSemaphore
) -> GrSemaphoresSubmitted
[src]
&mut self,
access: SkSurface_BackendSurfaceAccess,
flags: SkSurface_FlushFlags,
numSemaphores: c_int,
signalSemaphores: *mut GrBackendSemaphore
) -> GrSemaphoresSubmitted
pub unsafe fn flushAndSignalSemaphores(
&mut self,
numSemaphores: c_int,
signalSemaphores: *mut GrBackendSemaphore
) -> GrSemaphoresSubmitted
[src]
&mut self,
numSemaphores: c_int,
signalSemaphores: *mut GrBackendSemaphore
) -> GrSemaphoresSubmitted
pub unsafe fn wait(
&mut self,
numSemaphores: c_int,
waitSemaphores: *const GrBackendSemaphore
) -> bool
[src]
&mut self,
numSemaphores: c_int,
waitSemaphores: *const GrBackendSemaphore
) -> bool
pub unsafe fn characterize(
&self,
characterization: *mut SkSurfaceCharacterization
) -> bool
[src]
&self,
characterization: *mut SkSurfaceCharacterization
) -> bool
pub unsafe fn draw1(
&mut self,
deferredDisplayList: *mut SkDeferredDisplayList
) -> bool
[src]
&mut self,
deferredDisplayList: *mut SkDeferredDisplayList
) -> bool
pub unsafe fn new(
width: c_int,
height: c_int,
surfaceProps: *const SkSurfaceProps
) -> Self
[src]
width: c_int,
height: c_int,
surfaceProps: *const SkSurfaceProps
) -> Self
pub unsafe fn new1(
imageInfo: *const SkImageInfo,
surfaceProps: *const SkSurfaceProps
) -> Self
[src]
imageInfo: *const SkImageInfo,
surfaceProps: *const SkSurfaceProps
) -> Self
Trait Implementations
Auto Trait Implementations
impl Send for SkSurface
impl Unpin for SkSurface
impl Sync for SkSurface
impl UnwindSafe for SkSurface
impl RefUnwindSafe for SkSurface
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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,