summaryrefslogtreecommitdiff
path: root/source/luametatex/source/tex/texlocalboxes.h
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2022-09-16 15:53:42 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2022-09-16 15:53:42 +0200
commitc161b7d6fe142231346cc1844e6e27c0ab7718c1 (patch)
tree3fd877b8986137703e987e4651a2db8e946a0f72 /source/luametatex/source/tex/texlocalboxes.h
parente94fa4dc30ec28a6727aa85e17aaac18b76aeadb (diff)
downloadcontext-c161b7d6fe142231346cc1844e6e27c0ab7718c1.tar.gz
2022-09-16 14:41:00
Diffstat (limited to 'source/luametatex/source/tex/texlocalboxes.h')
-rw-r--r--source/luametatex/source/tex/texlocalboxes.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/source/luametatex/source/tex/texlocalboxes.h b/source/luametatex/source/tex/texlocalboxes.h
new file mode 100644
index 000000000..6c37ea1ae
--- /dev/null
+++ b/source/luametatex/source/tex/texlocalboxes.h
@@ -0,0 +1,35 @@
+/*
+ See license.txt in the root of this project.
+*/
+
+# ifndef LMT_LOCALBOXES_H
+# define LMT_LOCALBOXES_H
+
+/*tex Todo: determine when to update (grouping, copying) or when to replace. */
+
+extern halfword tex_get_local_boxes (halfword location);
+extern void tex_set_local_boxes (halfword b, halfword location);
+extern halfword tex_use_local_boxes (halfword p, halfword location);
+extern void tex_update_local_boxes (halfword b, halfword index, halfword location);
+extern void tex_replace_local_boxes (halfword par, halfword b, halfword index, halfword location);
+extern void tex_reset_local_boxes (halfword index, halfword location);
+
+extern void tex_add_local_boxes (halfword p);
+extern void tex_scan_local_boxes_keys (quarterword *options, halfword *index);
+extern halfword tex_valid_box_index (halfword n);
+
+/*tex Helpers, just in case we decide to be more sparse. */
+
+extern scaled tex_get_local_left_width (halfword p);
+extern scaled tex_get_local_right_width (halfword p);
+
+extern void tex_set_local_left_width (halfword p, scaled width);
+extern void tex_set_local_right_width (halfword p, scaled width);
+
+extern halfword tex_get_local_interline_penalty (halfword p);
+extern halfword tex_get_local_broken_penalty (halfword p);
+
+extern void tex_set_local_interline_penalty (halfword p, halfword penalty);
+extern void tex_set_local_broken_penalty (halfword p, halfword penalty);
+
+# endif \ No newline at end of file