pub struct NewCanvas {
pub width: u32,
pub height: u32,
pub resolution: f64,
pub paper: Option<[u8; 3]>,
pub layer_name: String,
}Expand description
Settings of a new canvas (pixels; the unit is set to pixels).
Fields§
§width: u32Width in pixels.
height: u32Height in pixels.
resolution: f64Dots per inch.
paper: Option<[u8; 3]>Paper colour; None for no paper layer.
layer_name: StringName of the first raster layer.
Trait Implementations§
impl StructuralPartialEq for NewCanvas
Auto Trait Implementations§
impl Freeze for NewCanvas
impl RefUnwindSafe for NewCanvas
impl Send for NewCanvas
impl Sync for NewCanvas
impl Unpin for NewCanvas
impl UnsafeUnpin for NewCanvas
impl UnwindSafe for NewCanvas
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