skia_safe

Type Alias PictureRecorder

Source
pub type PictureRecorder = Handle<SkPictureRecorder>;

Aliased Type§

struct PictureRecorder(/* private fields */);

Implementations§

Source§

impl PictureRecorder

Source

pub fn new() -> Self

Source

pub fn begin_recording( &mut self, bounds: impl AsRef<Rect>, bbh_factory: Option<&mut BBHFactory>, ) -> &Canvas

Source

pub fn recording_canvas(&mut self) -> Option<&Canvas>

Source

pub fn finish_recording_as_picture( &mut self, cull_rect: Option<&Rect>, ) -> Option<Picture>

Source

pub fn finish_recording_as_drawable(&mut self) -> Option<Drawable>

Trait Implementations§

Source§

impl Debug for PictureRecorder

Source§

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

Formats the value using the given formatter. Read more