diff options
| author | Laurenz <laurmaedje@gmail.com> | 2019-06-17 10:08:16 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2019-06-17 10:08:16 +0200 |
| commit | b53ad6b1ec8b2fd05566a83c9b895f265e61d281 (patch) | |
| tree | 1c6d590ead7180fbef12915cfcd04418c9ea7902 /src/doc.rs | |
| parent | 236ebab23a106ca817de527ce6b6440d3b66c150 (diff) | |
Introduce flex layouting 🎈
Diffstat (limited to 'src/doc.rs')
| -rw-r--r-- | src/doc.rs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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. |
