pub struct Canvas {
pub main_id: i64,
pub unit: Unit,
pub width: f64,
pub height: f64,
pub resolution: f64,
pub width_px: u32,
pub height_px: u32,
pub root_folder: i64,
pub channel_bytes: i64,
pub double_page: bool,
pub row: Row,
}Expand description
Settings of the canvas (one row of Canvas).
Fields§
§main_id: i64MainId of the row.
unit: UnitUnit of width and height (CanvasUnit).
width: f64Width in unit (CanvasWidth).
height: f64Height in unit (CanvasHeight).
resolution: f64Resolution in dots per inch (CanvasResolution).
width_px: u32Size in pixels as CSP computes it from width/height.
height_px: u32Height in pixels, as width_px.
root_folder: i64MainId of the root folder layer (CanvasRootFolder).
channel_bytes: i64Bytes per colour channel (CanvasChannelBytes, 1 in CSP files).
double_page: boolThe canvas is a two-page spread (CanvasDoublePage).
row: RowThe whole row, for the columns not typed here.
Implementations§
Trait 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 UnsafeUnpin 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