Type Definition skia_safe::PixelRef

source ·
pub type PixelRef = RCHandle<SkPixelRef>;

Implementations§

source§

impl PixelRef

source

pub fn dimensions(&self) -> ISize

source

pub fn width(&self) -> i32

source

pub fn height(&self) -> i32

source

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

source

pub fn row_bytes(&self) -> usize

source

pub fn generation_id(&self) -> u32

source

pub fn notify_pixels_changed(&mut self)

source

pub fn is_immutable(&self) -> bool

source

pub fn set_immutable(&mut self)

source

pub fn notify_added_to_cache(&mut self)

Trait Implementations§

source§

impl Debug for PixelRef

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Send for PixelRef

source§

impl Sync for PixelRef