summaryrefslogtreecommitdiff
path: root/src/eval
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-10-06 13:13:18 +0200
committerLaurenz <laurmaedje@gmail.com>2020-10-06 13:13:18 +0200
commitc6a6870978226f2c6e3b258a6270cc0dcde58c72 (patch)
treee3e75fad9055c6af5f747026e7c0146b4d035d09 /src/eval
parent5a7a32a9bafbcc69077e7766451310ab5ece62bf (diff)
Rename secondary/primary to main/cross ✏
Diffstat (limited to 'src/eval')
-rw-r--r--src/eval/state.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/eval/state.rs b/src/eval/state.rs
index d9009614..295a106c 100644
--- a/src/eval/state.rs
+++ b/src/eval/state.rs
@@ -4,7 +4,7 @@ use fontdock::{fallback, FallbackTree, FontStretch, FontStyle, FontVariant, Font
use super::Scope;
use crate::geom::{Insets, Linear, Size};
-use crate::layout::{Dir, GenAlign, LayoutAlign, LayoutSystem, Sides};
+use crate::layout::{Dir, Gen2, GenAlign, Sides};
use crate::length::Length;
use crate::paper::{Paper, PaperClass, PAPER_A4};
@@ -17,10 +17,10 @@ pub struct State {
pub text: TextState,
/// The page state.
pub page: PageState,
- /// The active layouting system.
- pub sys: LayoutSystem,
+ /// The active layouting directions.
+ pub dirs: Gen2<Dir>,
/// The active alignments.
- pub align: LayoutAlign,
+ pub aligns: Gen2<GenAlign>,
}
impl Default for State {
@@ -29,8 +29,8 @@ impl Default for State {
scope: crate::library::_std(),
text: TextState::default(),
page: PageState::default(),
- sys: LayoutSystem::new(Dir::LTR, Dir::TTB),
- align: LayoutAlign::new(GenAlign::Start, GenAlign::Start),
+ dirs: Gen2::new(Dir::TTB, Dir::LTR),
+ aligns: Gen2::new(GenAlign::Start, GenAlign::Start),
}
}
}