Type Definition skia_safe::PictureRecorder

source ·
pub type PictureRecorder = Handle<SkPictureRecorder>;

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> ) -> &mut Canvas

source

pub fn recording_canvas(&mut self) -> Option<&mut 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