summary refs log tree commit diff
path: root/nav.h
diff options
context:
space:
mode:
authorwrmr2024-11-02 19:33:08 -0500
committerwrmr2024-11-02 19:33:08 -0500
commit610808a5902adad751a4acdbcc310803a51fed5d (patch)
tree76599dc60cccf6a3765f484dfa1b19e1af88efa1 /nav.h
parent58214ec5f982c1b97aadce254c958a5f922c9724 (diff)
very different document data structure
Diffstat (limited to 'nav.h')
-rw-r--r--nav.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/nav.h b/nav.h
new file mode 100644
index 0000000..baefba9
--- /dev/null
+++ b/nav.h
@@ -0,0 +1,19 @@
+#ifndef NAV_H
+#define NAV_H
+
+#include "doc.h"
+#define HIST_MAX 32
+
+struct nav_state {
+	size_t histc, cur_doc;
+	struct doc histv[HIST_MAX];
+	size_t cur_ofs[HIST_MAX];
+};
+
+void nav_init(struct nav_state *ns);
+void nav_fini(struct nav_state *ns);
+void nav_pg_up(struct nav_state *ns);
+void nav_pg_down(struct nav_state *ns);
+void nav_redraw(struct nav_state *ns);
+
+#endif