[][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 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]

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 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, 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]

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]

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]

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 writePixels(
    &mut self,
    src: *const SkPixmap,
    dstX: c_int,
    dstY: c_int
) -> bool
[src]

pub unsafe fn extractAlpha(
    &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]

Auto Trait Implementations

impl Unpin for SkBitmap

impl !Sync for SkBitmap

impl !Send for SkBitmap

impl UnwindSafe for SkBitmap

impl !RefUnwindSafe for SkBitmap

Blanket Implementations

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

impl<T> From<T> for 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]