From 3ff107c7ca438749a8425feef9eefb67c7a8abfc Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Thu, 25 Feb 2021 16:56:28 -0500 Subject: resizing nodes (not fully working yet?) --- ted.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ted.h') 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. -- cgit v1.2.3