pub struct Canvas<F>where
F: Fn(&mut DrawContext<'_>),{ /* private fields */ }Expand description
A canvas widget for custom drawing (character-based)
Implementations§
Trait Implementations§
Source§impl<F> View for Canvas<F>where
F: Fn(&mut DrawContext<'_>),
impl<F> View for Canvas<F>where
F: Fn(&mut DrawContext<'_>),
Source§fn render(&self, ctx: &mut RenderContext<'_>)
fn render(&self, ctx: &mut RenderContext<'_>)
Render the view to the given context Read more
Source§fn widget_type(&self) -> &'static str
fn widget_type(&self) -> &'static str
Get widget type name (for CSS type selectors) Read more
Source§fn meta(&self) -> WidgetMeta
fn meta(&self) -> WidgetMeta
Get widget metadata for DOM Read more
Auto Trait Implementations§
impl<F> Freeze for Canvas<F>where
F: Freeze,
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> UnsafeUnpin for Canvas<F>where
F: UnsafeUnpin,
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