[−][src]Struct skia_bindings::SkPixelRef
Fields
_base: SkRefCnt
fWidth: c_int
fHeight: c_int
fPixels: *mut c_void
fRowBytes: usize
fTaggedGenID: std_atomic<u32>
fGenIDChangeListenersMutex: SkMutex
fGenIDChangeListeners: 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]
fMutability: SkPixelRef_Mutability
) -> __BindgenBitfieldUnit<[u8; 1], u8>
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]
&mut self,
listener: *mut SkPixelRef_GenIDChangeListener
)
pub unsafe fn notifyAddedToCache(&mut self)
[src]
pub unsafe fn android_only_reset(
&mut self,
width: c_int,
height: c_int,
rowBytes: usize
)
[src]
&mut self,
width: c_int,
height: c_int,
rowBytes: usize
)
pub unsafe fn new(
width: c_int,
height: c_int,
addr: *mut c_void,
rowBytes: usize
) -> Self
[src]
width: c_int,
height: c_int,
addr: *mut c_void,
rowBytes: usize
) -> Self
Trait Implementations
Auto Trait Implementations
impl !Sync for SkPixelRef
impl !Send for SkPixelRef
impl Unpin for SkPixelRef
impl !RefUnwindSafe for SkPixelRef
impl UnwindSafe for SkPixelRef
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,