From 5230cb1533d9e30e9870975cba2cd7e7e86bc22a Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Fri, 29 Jan 2021 15:45:49 -0500 Subject: started tab bar --- ted.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ted.h') 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 -- cgit v1.2.3