[−][src]Struct skia_bindings::SkBitmap
Fields
fPixelRef: sk_sp<SkPixelRef>
fPixmap: SkPixmap
fFlags: u8
Methods
impl SkBitmap
[src]
pub unsafe fn swap(&mut self, other: *mut SkBitmap)
[src]
pub unsafe fn setAlphaType(&mut self, alphaType: SkAlphaType) -> bool
[src]
pub unsafe fn isImmutable(&self) -> bool
[src]
pub unsafe fn setImmutable(&mut self)
[src]
pub unsafe fn isVolatile(&self) -> bool
[src]
pub unsafe fn setIsVolatile(&mut self, isVolatile: bool)
[src]
pub unsafe fn reset(&mut self)
[src]
pub unsafe fn getBounds(&self, bounds: *mut SkRect)
[src]
pub unsafe fn getBounds1(&self, bounds: *mut SkIRect)
[src]
pub unsafe fn setInfo(
&mut self,
imageInfo: *const SkImageInfo,
rowBytes: usize
) -> bool
[src]
&mut self,
imageInfo: *const SkImageInfo,
rowBytes: usize
) -> bool
pub unsafe fn tryAllocPixelsFlags(
&mut self,
info: *const SkImageInfo,
flags: u32
) -> bool
[src]
&mut self,
info: *const SkImageInfo,
flags: u32
) -> bool
pub unsafe fn allocPixelsFlags(&mut self, info: *const SkImageInfo, flags: u32)
[src]
pub unsafe fn tryAllocPixels(
&mut self,
info: *const SkImageInfo,
rowBytes: usize
) -> bool
[src]
&mut self,
info: *const SkImageInfo,
rowBytes: usize
) -> bool
pub unsafe fn allocPixels(&mut self, info: *const SkImageInfo, rowBytes: usize)
[src]
pub unsafe fn allocPixels1(&mut self, info: *const SkImageInfo)
[src]
pub unsafe fn tryAllocN32Pixels(
&mut self,
width: c_int,
height: c_int,
isOpaque: bool
) -> bool
[src]
&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
)
[src]
&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
[src]
&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
[src]
pub unsafe fn installMaskPixels(&mut self, mask: *const SkMask) -> bool
[src]
pub unsafe fn setPixels(&mut self, pixels: *mut c_void)
[src]
pub unsafe fn allocPixels2(&mut self)
[src]
pub unsafe fn tryAllocPixels1(
&mut self,
allocator: *mut SkBitmap_Allocator
) -> bool
[src]
&mut self,
allocator: *mut SkBitmap_Allocator
) -> bool
pub unsafe fn allocPixels3(&mut self, allocator: *mut SkBitmap_Allocator)
[src]
pub unsafe fn pixelRefOrigin(&self) -> SkIPoint
[src]
pub unsafe fn setPixelRef(
&mut self,
pixelRef: sk_sp<SkPixelRef>,
dx: c_int,
dy: c_int
)
[src]
&mut self,
pixelRef: sk_sp<SkPixelRef>,
dx: c_int,
dy: c_int
)
pub unsafe fn getGenerationID(&self) -> u32
[src]
pub unsafe fn notifyPixelsChanged(&self)
[src]
pub unsafe fn eraseColor(&self, c: SkColor)
[src]
pub unsafe fn erase(&self, c: SkColor, area: *const SkIRect)
[src]
pub unsafe fn getAddr(&self, x: c_int, y: c_int) -> *mut c_void
[src]
pub unsafe fn extractSubset(
&self,
dst: *mut SkBitmap,
subset: *const SkIRect
) -> bool
[src]
&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
[src]
&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
[src]
&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
[src]
&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
[src]
&self,
dst: *mut SkBitmap,
paint: *const SkPaint,
allocator: *mut SkBitmap_Allocator,
offset: *mut SkIPoint
) -> bool
pub unsafe fn peekPixels(&self, pixmap: *mut SkPixmap) -> bool
[src]
pub unsafe fn makeShader(
&self,
tmx: SkTileMode,
tmy: SkTileMode,
localMatrix: *const SkMatrix
) -> sk_sp<SkShader>
[src]
&self,
tmx: SkTileMode,
tmy: SkTileMode,
localMatrix: *const SkMatrix
) -> sk_sp<SkShader>
pub unsafe fn makeShader1(
&self,
localMatrix: *const SkMatrix
) -> sk_sp<SkShader>
[src]
&self,
localMatrix: *const SkMatrix
) -> sk_sp<SkShader>
pub unsafe fn new() -> Self
[src]
pub unsafe fn new1(src: *const SkBitmap) -> Self
[src]
pub unsafe fn new2(src: *mut SkBitmap) -> Self
[src]
pub unsafe fn destruct(&mut self)
[src]
Auto Trait Implementations
impl !Send for SkBitmap
impl Unpin for SkBitmap
impl !Sync for SkBitmap
impl UnwindSafe for SkBitmap
impl !RefUnwindSafe for SkBitmap
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,