skia_safe

Type Alias PixelRef

Source
pub type PixelRef = RCHandle<SkPixelRef>;

Aliased Type§

struct PixelRef(/* private fields */);

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