summaryrefslogtreecommitdiff
path: root/src/layout/mod.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2019-12-11 22:06:54 +0100
committerLaurenz <laurmaedje@gmail.com>2019-12-11 22:06:54 +0100
commita791ef162868c65284903ab479731e0dc9e7a223 (patch)
tree28384c5647086db87c822b186860492dfce23af3 /src/layout/mod.rs
parentd34707a6ae058560140c83af21365884451e9274 (diff)
Pretty good stack layouter ✈
Diffstat (limited to 'src/layout/mod.rs')
-rw-r--r--src/layout/mod.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/layout/mod.rs b/src/layout/mod.rs
index fe4d3e08..fa3a8866 100644
--- a/src/layout/mod.rs
+++ b/src/layout/mod.rs
@@ -65,14 +65,16 @@ pub struct LayoutContext<'a, 'p> {
pub loader: &'a SharedFontLoader<'p>,
/// The style for pages and text.
pub style: &'a LayoutStyle,
- /// Whether this layouting process handles the top-level pages.
- pub top_level: bool,
/// The spaces to layout in.
pub spaces: LayoutSpaces,
/// The initial axes along which content is laid out.
pub axes: LayoutAxes,
/// The alignment of the finished layout.
pub alignment: LayoutAlignment,
+ /// Whether this layouting process handles the top-level pages.
+ pub top_level: bool,
+ /// Whether to debug render a box around the layout.
+ pub debug: bool,
}
/// A possibly stack-allocated vector of layout spaces.