pub struct Canvas {
pub width: u32,
pub height: u32,
pub background: Option<Shape>,
pub display_list: DisplayList,
}
Expand description
Container for a drawing
Fields§
§width: u32
Width of the canvas in pixels
height: u32
Height of the canvas in pixels
background: Option<Shape>
Optional background shape
display_list: DisplayList
Display list; contains drawings ordered from bottom to top
Implementations§
Auto Trait Implementations§
impl Freeze for Canvas
impl RefUnwindSafe for Canvas
impl Send for Canvas
impl Sync for Canvas
impl Unpin for Canvas
impl UnwindSafe for Canvas
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