pub struct CanvasDescriptor {
pub size: Size,
pub face_color: Color,
pub image_format: ImageFormat,
}
Expand description
Describes a Canvas
to be constructed.
Fields§
§size: Size
The size in dots (pixels) of the canvas.
face_color: Color
The background color of the canvas.
image_format: ImageFormat
What type of image format will be drawn.
Trait Implementations§
Source§impl Clone for CanvasDescriptor
impl Clone for CanvasDescriptor
Source§fn clone(&self) -> CanvasDescriptor
fn clone(&self) -> CanvasDescriptor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CanvasDescriptor
impl Debug for CanvasDescriptor
Auto Trait Implementations§
impl Freeze for CanvasDescriptor
impl RefUnwindSafe for CanvasDescriptor
impl Send for CanvasDescriptor
impl Sync for CanvasDescriptor
impl Unpin for CanvasDescriptor
impl UnwindSafe for CanvasDescriptor
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