diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-01-29 15:45:49 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-01-29 15:45:58 -0500 |
commit | 5230cb1533d9e30e9870975cba2cd7e7e86bc22a (patch) | |
tree | 260c4bac7a1624eb5cc4cbba492d7822aee260d7 /ted.h | |
parent | 31b5649b131695300f39563640c4af8f0d3032cb (diff) |
started tab bar
Diffstat (limited to 'ted.h')
-rw-r--r-- | ted.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |