summaryrefslogtreecommitdiff
path: root/src/doc.rs
diff options
context:
space:
mode:
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.