summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-25 16:56:28 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-25 16:56:28 -0500
commit3ff107c7ca438749a8425feef9eefb67c7a8abfc (patch)
treed42f3526c3bc36383e3979c50142b2c7c200b220 /ted.h
parent6d77e94b652ab4b8070b5acf1c6febfe77fc41c3 (diff)
resizing nodes (not fully working yet?)
Diffstat (limited to 'ted.h')
-rw-r--r--ted.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ted.h b/ted.h
index cdfa433..798734f 100644
--- a/ted.h
+++ b/ted.h
@@ -241,6 +241,7 @@ typedef struct Ted {
float window_width, window_height;
u32 key_modifier; // which of shift, alt, ctrl are down right now.
v2 mouse_pos;
+ u32 mouse_state;
u8 nmouse_clicks[4]; // nmouse_clicks[i] = length of mouse_clicks[i]
v2 mouse_clicks[4][32]; // mouse_clicks[SDL_BUTTON_RIGHT], for example, is all the right mouse-clicks that have happened this frame
// number of times mouse was clicked at each position
@@ -278,6 +279,9 @@ typedef struct Ted {
SDL_Cursor *cursor_arrow, *cursor_ibeam, *cursor_resize_h, *cursor_resize_v;
SDL_Cursor *cursor; // which cursor to use this frame
+ // if not NULL, points to the node whose split the user is currently resizing.
+ Node *resizing_split;
+
char **tag_selector_entries; // an array of all tags (see tag_selector_open)
// points to a selector if any is open, otherwise NULL.