☰
Drawable
Methods
approximate_bytes_used
bounds
draw
draw_at
generation_id
make_picture_snapshot
notify_drawing_changed
snap_gpu_draw_handler
Trait Implementations
Debug
In skia_safe::drawable
?
Type Definition
skia_safe
::
drawable
::
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