summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-25 18:27:07 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-25 18:27:07 -0500
commit2baf965c7db4a3640cd120e050c61aa7de67448b (patch)
tree4ea6d87d6157b3d25eba24aa8805a10219c44a2f /ted.h
parent3ff107c7ca438749a8425feef9eefb67c7a8abfc (diff)
node resizing working
Diffstat (limited to 'ted.h')
-rw-r--r--ted.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ted.h b/ted.h
index 798734f..784001f 100644
--- a/ted.h
+++ b/ted.h
@@ -203,6 +203,7 @@ 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
+ v2 size; // size of node, as a percentage of the window dimensions
float split_pos; // number from 0 to 1 indicating where the split is.
u16 active_tab; // index of active tab in tabs.
bool split_vertical; // is the split vertical? if false, this split looks like a|b