[][src]Struct skia_bindings::SkBitmap

#[repr(C)]
pub struct SkBitmap {
    pub fPixelRef: sk_sp<SkPixelRef>,
    pub fPixmap: SkPixmap,
    pub fFlags: u8,
}

Fields

fPixelRef: sk_sp<SkPixelRef>fPixmap: SkPixmapfFlags: u8

Methods

impl SkBitmap[src]

pub unsafe fn swap(&mut self, other: *mut SkBitmap)[src]

pub unsafe fn pixmap(&self) -> *const SkPixmap[src]

pub unsafe fn info(&self) -> *const SkImageInfo[src]

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

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

pub unsafe fn colorType(&self) -> SkColorType[src]

pub unsafe fn alphaType(&self) -> SkAlphaType[src]

pub unsafe fn colorSpace(&self) -> *mut SkColorSpace[src]

pub unsafe fn refColorSpace(&self) -> sk_sp<SkColorSpace>[src]

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

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

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

pub unsafe fn empty(&self) -> bool[src]

pub unsafe fn isNull(&self) -> bool[src]

pub unsafe fn drawsNothing(&self) -> bool[src]

pub unsafe fn rowBytes(&self) -> usize[src]

pub unsafe fn setAlphaType(&mut self, alphaType: SkAlphaType) -> bool[src]

pub unsafe fn getPixels(&self) -> *mut c_void[src]

pub unsafe fn computeByteSize(&self) -> usize[src]

pub unsafe fn isImmutable(&self) -> bool[src]

pub unsafe fn setImmutable(&mut self)[src]

pub unsafe fn isOpaque(&self) -> bool[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 ComputeIsOpaque(bm: *const SkBitmap) -> bool[src]

pub unsafe fn getBounds(&self, bounds: *mut SkRect)[src]

pub unsafe fn getBounds1(&self, bounds: *mut SkIRect)[src]

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

pub unsafe fn dimensions(&self) -> SkISize[src]

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

pub unsafe fn setInfo(
    &mut self,
    imageInfo: *const SkImageInfo,
    rowBytes: usize
) -> bool
[src]

pub unsafe fn tryAllocPixelsFlags(
    &mut self,
    info: *const SkImageInfo,
    flags: u32
) -> bool
[src]

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]

pub unsafe fn allocPixels(&mut self, info: *const SkImageInfo, rowBytes: usize)[src]

pub unsafe fn tryAllocPixels1(&mut self, info: *const SkImageInfo) -> bool[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]

pub unsafe fn allocN32Pixels(
    &mut self,
    width: c_int,
    height: c_int,
    isOpaque: bool
)
[src]

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]

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

pub unsafe fn installPixels2(&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 tryAllocPixels2(&mut self) -> bool[src]

pub unsafe fn allocPixels2(&mut self)[src]

pub unsafe fn tryAllocPixels3(
    &mut self,
    allocator: *mut SkBitmap_Allocator
) -> bool
[src]

pub unsafe fn allocPixels3(&mut self, allocator: *mut SkBitmap_Allocator)[src]

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

pub unsafe fn readyToDraw(&self) -> bool[src]

pub unsafe fn getGenerationID(&self) -> u32[src]

pub unsafe fn notifyPixelsChanged(&self)[src]

pub unsafe fn eraseColor(&self, c: SkColor)[src]

pub unsafe fn eraseARGB(&self, a: U8CPU, r: U8CPU, g: U8CPU, b: U8CPU)[src]

pub unsafe fn erase(&self, c: SkColor, area: *const SkIRect)[src]

pub unsafe fn eraseArea(&self, area: *const SkIRect, c: SkColor)[src]

pub unsafe fn getColor(&self, x: c_int, y: c_int) -> SkColor[src]

pub unsafe fn getAlphaf(&self, x: c_int, y: c_int) -> f32[src]

pub unsafe fn getAddr(&self, x: c_int, y: c_int) -> *mut c_void[src]

pub unsafe fn getAddr32(&self, x: c_int, y: c_int) -> *mut u32[src]

pub unsafe fn getAddr16(&self, x: c_int, y: c_int) -> *mut u16[src]

pub unsafe fn getAddr8(&self, x: c_int, y: c_int) -> *mut u8[src]

pub unsafe fn extractSubset(
    &self,
    dst: *mut SkBitmap,
    subset: *const SkIRect
) -> bool
[src]

pub unsafe fn readPixels(
    &self,
    dstInfo: *const SkImageInfo,
    dstPixels: *mut c_void,
    dstRowBytes: usize,
    srcX: c_int,
    srcY: c_int
) -> bool
[src]

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

pub unsafe fn readPixels2(&self, dst: *const SkPixmap) -> bool[src]

pub unsafe fn writePixels(
    &mut self,
    src: *const SkPixmap,
    dstX: c_int,
    dstY: c_int
) -> bool
[src]

pub unsafe fn writePixels1(&mut self, src: *const SkPixmap) -> bool[src]

pub unsafe fn extractAlpha(&self, dst: *mut SkBitmap) -> bool[src]

pub unsafe fn extractAlpha1(
    &self,
    dst: *mut SkBitmap,
    paint: *const SkPaint,
    offset: *mut SkIPoint
) -> bool
[src]

pub unsafe fn extractAlpha2(
    &self,
    dst: *mut SkBitmap,
    paint: *const SkPaint,
    allocator: *mut SkBitmap_Allocator,
    offset: *mut SkIPoint
) -> bool
[src]

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]

pub unsafe fn makeShader1(
    &self,
    localMatrix: *const SkMatrix
) -> sk_sp<SkShader>
[src]

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]

Trait Implementations

impl Debug for SkBitmap[src]

Auto Trait Implementations

impl !Sync for SkBitmap

impl !Send for SkBitmap

impl Unpin for SkBitmap

impl !RefUnwindSafe for SkBitmap

impl !UnwindSafe for SkBitmap

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]