pub struct CanvasSurface { /* private fields */ }Expand description
Immutable RGBA8 raster surface painted beneath a WidgetKind::Canvas
scene.
The buffer is row-major with four bytes per pixel (width * height * 4)
and is shared behind an Arc, so cloning a surface into the widget spec,
the backend, and a paint property is cheap. Backends composite it over the
canvas background and clip it to the widget; the retained scene draws on
top. Full typed image resources with source rectangles and sampling remain
the scope (docs/design/canvas-api-rfc.md, superseding note).
Implementations§
Trait Implementations§
Source§impl Clone for CanvasSurface
impl Clone for CanvasSurface
Source§impl Debug for CanvasSurface
impl Debug for CanvasSurface
impl Eq for CanvasSurface
Source§impl PartialEq for CanvasSurface
impl PartialEq for CanvasSurface
impl StructuralPartialEq for CanvasSurface
Auto Trait Implementations§
impl Forget for CanvasSurface
impl Freeze for CanvasSurface
impl Move for CanvasSurface
impl RefUnwindSafe for CanvasSurface
impl Send for CanvasSurface
impl Sync for CanvasSurface
impl Unpin for CanvasSurface
impl UnsafeUnpin for CanvasSurface
impl UnwindSafe for CanvasSurface
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more