skia_
safe
0.81.0
Drawable
Aliased type
Methods
approximate_bytes_used
bounds
draw
draw_at
generation_id
make_picture_snapshot
notify_drawing_changed
snap_gpu_draw_handler
Trait Implementations
Debug
In crate skia_
safe
skia_safe
Type Alias
Drawable
Copy item path
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