[][src]Struct skia_bindings::SkPixelRef

#[repr(C)]
pub struct SkPixelRef {
    pub _base: SkRefCnt,
    pub fWidth: c_int,
    pub fHeight: c_int,
    pub fPixels: *mut c_void,
    pub fRowBytes: usize,
    pub fTaggedGenID: std_atomic<u32>,
    pub fGenIDChangeListenersMutex: SkMutex,
    pub fGenIDChangeListeners: SkTDArray<*mut SkPixelRef_GenIDChangeListener>,
    pub fAddedToCache: std_atomic<bool>,
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>,
    pub __bindgen_padding_0: [u16; 3],
}

Fields

_base: SkRefCntfWidth: c_intfHeight: c_intfPixels: *mut c_voidfRowBytes: usizefTaggedGenID: std_atomic<u32>fGenIDChangeListenersMutex: SkMutexfGenIDChangeListeners: SkTDArray<*mut SkPixelRef_GenIDChangeListener>fAddedToCache: std_atomic<bool>_bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>__bindgen_padding_0: [u16; 3]

Methods

impl SkPixelRef[src]

pub fn fMutability(&self) -> SkPixelRef_Mutability[src]

pub fn set_fMutability(&mut self, val: SkPixelRef_Mutability)[src]

pub fn new_bitfield_1(
    fMutability: SkPixelRef_Mutability
) -> __BindgenBitfieldUnit<[u8; 1], u8>
[src]

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

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

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

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

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

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

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

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

pub unsafe fn addGenIDChangeListener(
    &mut self,
    listener: *mut SkPixelRef_GenIDChangeListener
)
[src]

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

pub unsafe fn android_only_reset(
    &mut self,
    width: c_int,
    height: c_int,
    rowBytes: usize
)
[src]

pub unsafe fn new(
    width: c_int,
    height: c_int,
    addr: *mut c_void,
    rowBytes: usize
) -> Self
[src]

Trait Implementations

impl Debug for SkPixelRef[src]

Auto Trait Implementations

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]