summaryrefslogtreecommitdiff
path: root/src/doc.rs
diff options
context:
space:
mode:
authorLaurenz Mädje <laurmaedje@gmail.com>2019-06-02 18:01:22 +0200
committerLaurenz Mädje <laurmaedje@gmail.com>2019-06-02 18:01:22 +0200
commit221934df4b586250b0063282ef8885c475dec7a7 (patch)
treeea91eb6fe6fbad71377f2dbf1c23a3a808dbf970 /src/doc.rs
parentc4eb4ee36261be8832b2649cc075edee188be5c7 (diff)
Add margins with basic box layouter 📖
Diffstat (limited to 'src/doc.rs')
-rw-r--r--src/doc.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc.rs b/src/doc.rs
index d6568ecd..a7d44897 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;
+use crate::layout::{Size, Position};
/// A complete typesetted document, which can be exported.
@@ -28,7 +28,7 @@ pub struct Page {
#[derive(Debug, Clone)]
pub enum TextAction {
/// Move from the _start_ of the current line by an (x, y) offset.
- MoveNewline(Size, Size),
+ MoveNewline(Position),
/// Write text starting at the current position.
WriteText(String),
/// Set the font by index and font size.