summaryrefslogtreecommitdiff
path: root/src/library/mod.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-10-28 16:51:57 +0200
committerLaurenz <laurmaedje@gmail.com>2021-10-28 16:51:57 +0200
commitd1ecb7e52eb2ab7ac4fde89bdc1c615d92ae3c7b (patch)
treeab1d61bd5b3cc197a51cfe210cd1949a1fdba029 /src/library/mod.rs
parent5c534fb42881b508175dd25129f62e604bdae403 (diff)
Add `move` function
Diffstat (limited to 'src/library/mod.rs')
-rw-r--r--src/library/mod.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/library/mod.rs b/src/library/mod.rs
index ac2085eb..6d3de11d 100644
--- a/src/library/mod.rs
+++ b/src/library/mod.rs
@@ -20,7 +20,7 @@ use crate::diag::{At, TypResult};
use crate::eval::{Args, Array, EvalContext, Scope, Str, Template, Value};
use crate::font::{FontFamily, FontStretch, FontStyle, FontWeight, VerticalFontMetric};
use crate::geom::*;
-use crate::layout::{BlockLevel, Spacing};
+use crate::layout::{BlockLevel, Frame, InlineLevel, LayoutContext, Spacing};
use crate::style::Style;
use crate::syntax::{Span, Spanned};
@@ -43,9 +43,10 @@ pub fn new() -> Scope {
std.def_func("h", h);
std.def_func("v", v);
std.def_func("align", align);
- std.def_func("box", boxed);
+ std.def_func("box", box_);
std.def_func("block", block);
std.def_func("pad", pad);
+ std.def_func("move", move_);
std.def_func("stack", stack);
std.def_func("grid", grid);