summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
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