summaryrefslogtreecommitdiff
path: root/src/doc.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2019-06-17 10:08:16 +0200
committerLaurenz <laurmaedje@gmail.com>2019-06-17 10:08:16 +0200
commitb53ad6b1ec8b2fd05566a83c9b895f265e61d281 (patch)
tree1c6d590ead7180fbef12915cfcd04418c9ea7902 /src/doc.rs
parent236ebab23a106ca817de527ce6b6440d3b66c150 (diff)
Introduce flex layouting 🎈
Diffstat (limited to 'src/doc.rs')
-rw-r--r--src/doc.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/doc.rs b/src/doc.rs
index 304b4936..f08332f6 100644
--- a/src/doc.rs
+++ b/src/doc.rs
@@ -1,7 +1,7 @@
//! Representation of typesetted documents.
use crate::font::Font;
-use crate::layout::{Size, Position};
+use crate::size::{Size, Size2D};
/// A complete typesetted document, which can be exported.
@@ -28,9 +28,9 @@ pub struct Page {
#[derive(Debug, Clone)]
pub enum TextAction {
/// Move to an absolute position.
- MoveAbsolute(Position),
+ MoveAbsolute(Size2D),
/// Move from the _start_ of the current line by an (x, y) offset.
- MoveNewline(Position),
+ MoveNewline(Size2D),
/// Write text starting at the current position.
WriteText(String),
/// Set the font by index and font size.