summaryrefslogtreecommitdiff
path: root/src/doc.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2019-10-13 12:08:07 +0200
committerLaurenz <laurmaedje@gmail.com>2019-10-13 12:08:07 +0200
commit463e4ebd8234da5e28700e9b22b6ef5f0dfef56f (patch)
tree01f3961d6996de3ee8f9819c2792f6ee8c2a3c3d /src/doc.rs
parent6f22e4f13c42f06b686a01fbdd28a0163e88ae77 (diff)
Refactor layout types 🚧
Diffstat (limited to 'src/doc.rs')
-rw-r--r--src/doc.rs23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/doc.rs b/src/doc.rs
deleted file mode 100644
index 9a287913..00000000
--- a/src/doc.rs
+++ /dev/null
@@ -1,23 +0,0 @@
-//! Representation of typesetted documents.
-
-use crate::layout::LayoutAction;
-use crate::size::Size;
-
-
-/// A complete typesetted document, which can be exported.
-#[derive(Debug, Clone)]
-pub struct Document {
- /// The pages of the document.
- pub pages: Vec<Page>,
-}
-
-/// A page of a document.
-#[derive(Debug, Clone)]
-pub struct Page {
- /// The width of the page.
- pub width: Size,
- /// The height of the page.
- pub height: Size,
- /// Layouting actions specifying how to draw content on the page.
- pub actions: Vec<LayoutAction>,
-}