summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-01-29 15:45:49 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-01-29 15:45:58 -0500
commit5230cb1533d9e30e9870975cba2cd7e7e86bc22a (patch)
tree260c4bac7a1624eb5cc4cbba492d7822aee260d7 /ted.h
parent31b5649b131695300f39563640c4af8f0d3032cb (diff)
started tab bar
Diffstat (limited to 'ted.h')
-rw-r--r--ted.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/ted.h b/ted.h
index 9228d00..30abb4b 100644
--- a/ted.h
+++ b/ted.h
@@ -103,9 +103,11 @@ typedef struct {
// a node is a collection of tabs OR a split of two nodes
typedef struct Node {
u16 *tabs; // dynamic array of indices into ted->buffers, or NULL if this is a split
+ float split_pos; // number from 0 to 1 indicating where the split is.
u16 active_tab;
- u16 left; // index into ted->nodes
- u16 right;
+ bool vertical_split; // is the split vertical? if false, this split looks like a|b
+ u16 split_a; // split left/upper half; index into ted->nodes
+ u16 split_b; // split right/lower half
} Node;
#define TED_MAX_BUFFERS 256