pub struct CanvasWidget { /* private fields */ }Expand description
§Description
A widget for drawing on a 2d canvas
Currently there is minimal functionality for this, it might be expanded upon in the future
Implementations§
Trait Implementations§
Source§impl Widget for CanvasWidget
impl Widget for CanvasWidget
Source§fn draw(
&mut self,
positioning_algorithm: &Box<dyn PositioningAlgorithm>,
display_buffer: &mut DisplayBuffer,
)
fn draw( &mut self, positioning_algorithm: &Box<dyn PositioningAlgorithm>, display_buffer: &mut DisplayBuffer, )
Description Read more
Source§fn get_bounding_box(&self) -> BoundingBox
fn get_bounding_box(&self) -> BoundingBox
Description Read more
Auto Trait Implementations§
impl Freeze for CanvasWidget
impl RefUnwindSafe for CanvasWidget
impl Send for CanvasWidget
impl Sync for CanvasWidget
impl Unpin for CanvasWidget
impl UnwindSafe for CanvasWidget
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