pub struct Canvas<F> { /* private fields */ }
Expand description
Canvas element. This lets you draw directly to the skia canvas.
Implementations§
Trait Implementations§
source§impl<T, A, F> View<T, A> for Canvas<F>where
F: FnMut(&Layout, &mut Canvas),
impl<T, A, F> View<T, A> for Canvas<F>where F: FnMut(&Layout, &mut Canvas),
fn build(&mut self, cx: &mut BuildContext) -> Id
fn rebuild(&mut self, _cx: &mut BuildContext, old: &mut Self)
fn message( &mut self, _state: &mut T, _id_path: &[Id], _message: &dyn Any ) -> Option<A>
fn layout(&mut self, cx: &mut LayoutContext, id: Id)
fn paint(&mut self, taffy: &Taffy, canvas: &mut Canvas)
Auto Trait Implementations§
impl<F> RefUnwindSafe for Canvas<F>where F: RefUnwindSafe,
impl<F> Send for Canvas<F>where F: Send,
impl<F> Sync for Canvas<F>where F: Sync,
impl<F> Unpin for Canvas<F>where F: Unpin,
impl<F> UnwindSafe for Canvas<F>where F: UnwindSafe,
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