skia_safe

Type Alias Drawable

Source
pub type Drawable = RCHandle<SkDrawable>;

Aliased Type§

struct Drawable(/* private fields */);

Implementations§

Source§

impl Drawable

Source

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

Source

pub fn draw_at(&mut self, canvas: &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