pub struct Sheet {
pub width: f64,
pub height: f64,
pub layers: Vec<Layer>,
pub strokes: Vec<Stroke>,
pub labels: Vec<Label>,
}Expand description
A sheet of paper, width x height millimetres, and what is on it.
Fields§
§width: f64§height: f64§layers: Vec<Layer>The layers it is drawn on, in the order they are written, whether
anything is on them or not. A layer drawn on but not listed here is
written after them (see Sheet::layers).
strokes: Vec<Stroke>§labels: Vec<Label>Implementations§
Source§impl Sheet
impl Sheet
Sourcepub fn layers(&self) -> Vec<Layer>
pub fn layers(&self) -> Vec<Layer>
Its Sheet::layers, followed by every other layer a stroke or a
label is on, in the order first drawn on: each layer once.
pub fn stroke(&mut self, layer: Layer, shape: Shape)
pub fn label( &mut self, layer: Layer, at: P, height: f64, anchor: Anchor, text: impl Into<String>, )
Trait Implementations§
impl StructuralPartialEq for Sheet
Auto Trait Implementations§
impl Freeze for Sheet
impl RefUnwindSafe for Sheet
impl Send for Sheet
impl Sync for Sheet
impl Unpin for Sheet
impl UnsafeUnpin for Sheet
impl UnwindSafe for Sheet
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