diff options
| author | Laurenz Mädje <laurmaedje@gmail.com> | 2019-06-02 18:01:22 +0200 |
|---|---|---|
| committer | Laurenz Mädje <laurmaedje@gmail.com> | 2019-06-02 18:01:22 +0200 |
| commit | 221934df4b586250b0063282ef8885c475dec7a7 (patch) | |
| tree | ea91eb6fe6fbad71377f2dbf1c23a3a808dbf970 /src/doc.rs | |
| parent | c4eb4ee36261be8832b2649cc075edee188be5c7 (diff) | |
Add margins with basic box layouter 📖
Diffstat (limited to 'src/doc.rs')
| -rw-r--r-- | src/doc.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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. |
