#[repr(C)]pub struct SkBitmap {
pub fPixelRef: sk_sp<SkPixelRef>,
pub fPixmap: SkPixmap,
}Fields§
§fPixelRef: sk_sp<SkPixelRef>§fPixmap: SkPixmapImplementations§
Source§impl SkBitmap
impl SkBitmap
pub unsafe fn swap(&mut self, other: *mut SkBitmap)
pub unsafe fn colorSpace(&self) -> *mut SkColorSpace
pub unsafe fn refColorSpace(&self) -> sk_sp<SkColorSpace>
pub unsafe fn setAlphaType(&mut self, alphaType: SkAlphaType) -> bool
pub unsafe fn setColorSpace(&mut self, colorSpace: sk_sp<SkColorSpace>)
pub unsafe fn isImmutable(&self) -> bool
pub unsafe fn setImmutable(&mut self)
pub unsafe fn reset(&mut self)
pub unsafe fn getBounds(&self, bounds: *mut SkRect)
pub unsafe fn getBounds1(&self, bounds: *mut SkIRect)
pub unsafe fn setInfo( &mut self, imageInfo: *const SkImageInfo, rowBytes: usize, ) -> bool
pub unsafe fn tryAllocPixelsFlags( &mut self, info: *const SkImageInfo, flags: u32, ) -> bool
pub unsafe fn allocPixelsFlags(&mut self, info: *const SkImageInfo, flags: u32)
pub unsafe fn tryAllocPixels( &mut self, info: *const SkImageInfo, rowBytes: usize, ) -> bool
pub unsafe fn allocPixels(&mut self, info: *const SkImageInfo, rowBytes: usize)
pub unsafe fn allocPixels1(&mut self, info: *const SkImageInfo)
pub unsafe fn tryAllocN32Pixels( &mut self, width: c_int, height: c_int, isOpaque: bool, ) -> bool
pub unsafe fn allocN32Pixels( &mut self, width: c_int, height: c_int, isOpaque: bool, )
pub unsafe fn installPixels( &mut self, info: *const SkImageInfo, pixels: *mut c_void, rowBytes: usize, releaseProc: Option<unsafe extern "C" fn(addr: *mut c_void, context: *mut c_void)>, context: *mut c_void, ) -> bool
pub unsafe fn installPixels1(&mut self, pixmap: *const SkPixmap) -> bool
pub unsafe fn setPixels(&mut self, pixels: *mut c_void)
pub unsafe fn allocPixels2(&mut self)
pub unsafe fn tryAllocPixels1( &mut self, allocator: *mut SkBitmap_Allocator, ) -> bool
pub unsafe fn allocPixels3(&mut self, allocator: *mut SkBitmap_Allocator)
pub unsafe fn pixelRefOrigin(&self) -> SkIPoint
pub unsafe fn setPixelRef( &mut self, pixelRef: sk_sp<SkPixelRef>, dx: c_int, dy: c_int, )
pub unsafe fn getGenerationID(&self) -> u32
pub unsafe fn notifyPixelsChanged(&self)
pub unsafe fn eraseColor(&self, arg1: SkColor4f)
pub unsafe fn eraseColor1(&self, c: SkColor)
pub unsafe fn erase(&self, c: SkColor4f, area: *const SkIRect)
pub unsafe fn erase1(&self, c: SkColor, area: *const SkIRect)
pub unsafe fn getAddr(&self, x: c_int, y: c_int) -> *mut c_void
pub unsafe fn extractSubset( &self, dst: *mut SkBitmap, subset: *const SkIRect, ) -> bool
pub unsafe fn readPixels( &self, dstInfo: *const SkImageInfo, dstPixels: *mut c_void, dstRowBytes: usize, srcX: c_int, srcY: c_int, ) -> bool
pub unsafe fn readPixels1( &self, dst: *const SkPixmap, srcX: c_int, srcY: c_int, ) -> bool
pub unsafe fn writePixels( &mut self, src: *const SkPixmap, dstX: c_int, dstY: c_int, ) -> bool
pub unsafe fn extractAlpha( &self, dst: *mut SkBitmap, paint: *const SkPaint, allocator: *mut SkBitmap_Allocator, offset: *mut SkIPoint, ) -> bool
pub unsafe fn peekPixels(&self, pixmap: *mut SkPixmap) -> bool
pub unsafe fn makeShader( &self, tmx: SkTileMode, tmy: SkTileMode, arg1: *const SkSamplingOptions, localMatrix: *const SkMatrix, ) -> sk_sp<SkShader>
pub unsafe fn makeShader1( &self, tmx: SkTileMode, tmy: SkTileMode, sampling: *const SkSamplingOptions, lm: *const SkMatrix, ) -> sk_sp<SkShader>
pub unsafe fn makeShader2( &self, sampling: *const SkSamplingOptions, lm: *const SkMatrix, ) -> sk_sp<SkShader>
pub unsafe fn makeShader3( &self, sampling: *const SkSamplingOptions, lm: *const SkMatrix, ) -> sk_sp<SkShader>
pub unsafe fn asImage(&self) -> sk_sp<SkImage>
pub unsafe fn new() -> Self
pub unsafe fn new1(src: *const SkBitmap) -> Self
pub unsafe fn new2(src: *mut SkBitmap) -> Self
pub unsafe fn destruct(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SkBitmap
impl !RefUnwindSafe for SkBitmap
impl !Send for SkBitmap
impl !Sync for SkBitmap
impl Unpin for SkBitmap
impl UnsafeUnpin for SkBitmap
impl UnwindSafe for SkBitmap
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