diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-10-13 13:51:58 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-10-13 13:51:58 +0200 |
| commit | 91e512069396f1de616ec2b0fe0cd31a76e7f2e9 (patch) | |
| tree | 204ef6032dd4d22b38236d4d85fc95c97e7a9f37 /src/eval/state.rs | |
| parent | 8680fcd4903b451909a5932e8b948a68c9aacb16 (diff) | |
BoxAlign and Flow aliases ✏
Diffstat (limited to 'src/eval/state.rs')
| -rw-r--r-- | src/eval/state.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/eval/state.rs b/src/eval/state.rs index 521e8c12..cb4a5eb9 100644 --- a/src/eval/state.rs +++ b/src/eval/state.rs @@ -5,7 +5,7 @@ use std::rc::Rc; use fontdock::{fallback, FallbackTree, FontStretch, FontStyle, FontVariant, FontWeight}; use super::Scope; -use crate::geom::{Align, Dir, Gen, Length, Linear, Relative, Sides, Size}; +use crate::geom::{Align, BoxAlign, Dir, Flow, Length, Linear, Relative, Sides, Size}; use crate::paper::{Paper, PaperClass, PAPER_A4}; /// The active evaluation state. @@ -20,9 +20,9 @@ pub struct State { /// The font state. pub font: FontState, /// The active layouting directions. - pub dirs: Gen<Dir>, - /// The active alignments. - pub aligns: Gen<Align>, + pub flow: Flow, + /// The active box alignments. + pub align: BoxAlign, } impl Default for State { @@ -32,8 +32,8 @@ impl Default for State { page: PageState::default(), par: ParState::default(), font: FontState::default(), - dirs: Gen::new(Dir::TTB, Dir::LTR), - aligns: Gen::new(Align::Start, Align::Start), + flow: Flow::new(Dir::TTB, Dir::LTR), + align: BoxAlign::new(Align::Start, Align::Start), } } } |
