diff options
| author | Laurenz <laurmaedje@gmail.com> | 2019-12-01 19:18:06 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2019-12-01 19:18:38 +0100 |
| commit | ace57c34206a13b4bc3885b944cc51e274f30b0f (patch) | |
| tree | 2f1e1e8e4ac5c3867492d5a59c49045058e16123 /src/func/mod.rs | |
| parent | 5782b82770f6923677942c3b4e2bf4f7258e47d8 (diff) | |
First half of stack update 🌓
Diffstat (limited to 'src/func/mod.rs')
| -rw-r--r-- | src/func/mod.rs | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/func/mod.rs b/src/func/mod.rs index 126fd824..33a6c756 100644 --- a/src/func/mod.rs +++ b/src/func/mod.rs @@ -12,8 +12,9 @@ pub mod helpers; /// Useful imports for creating your own functions. pub mod prelude { pub use crate::func::{Command, CommandList, Function}; - pub use crate::layout::{layout_tree, Layout, MultiLayout, LayoutContext, LayoutSpace}; - pub use crate::layout::{LayoutAxes, Axis, Alignment}; + pub use crate::layout::{layout_tree, Layout, MultiLayout, LayoutContext}; + pub use crate::layout::{LayoutSpace, LayoutSpaces, SpacingKind}; + pub use crate::layout::{LayoutAxes, Axis, AxisKind, LayoutAlignment, Alignment}; pub use crate::layout::{LayoutError, LayoutResult}; pub use crate::syntax::{SyntaxTree, FuncHeader, FuncArgs, Expression, Spanned, Span}; pub use crate::syntax::{parse, ParseContext, ParseError, ParseResult}; @@ -96,19 +97,16 @@ pub enum Command<'a> { Add(Layout), AddMultiple(MultiLayout), - - AddPrimarySpace(Size), - AddSecondarySpace(Size), + AddSpacing(Size, SpacingKind, AxisKind), FinishLine, FinishRun, FinishSpace, - BreakParagraph, SetTextStyle(TextStyle), SetPageStyle(PageStyle), - + SetAlignment(LayoutAlignment), SetAxes(LayoutAxes), } |
