Type Definition skia_safe::Drawable

source ·
pub type Drawable = RCHandle<SkDrawable>;

Implementations§

source§

impl Drawable

source

pub fn draw(&mut self, canvas: &mut Canvas, matrix: Option<&Matrix>)

source

pub fn draw_at(&mut self, canvas: &mut Canvas, point: impl Into<Point>)

source

pub fn snap_gpu_draw_handler( &mut self, api: BackendAPI, matrix: &Matrix, clip_bounds: impl Into<IRect>, buffer_info: &ImageInfo ) -> Option<GPUDrawHandler>

source

pub fn make_picture_snapshot(&mut self) -> Picture

source

pub fn generation_id(&mut self) -> u32

source

pub fn bounds(&mut self) -> Rect

source

pub fn approximate_bytes_used(&mut self) -> usize

source

pub fn notify_drawing_changed(&mut self)

Trait Implementations§

source§

impl Debug for Drawable

source§

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

Formats the value using the given formatter. Read more