diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-25 16:56:28 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-25 16:56:28 -0500 |
commit | 3ff107c7ca438749a8425feef9eefb67c7a8abfc (patch) | |
tree | d42f3526c3bc36383e3979c50142b2c7c200b220 /ted.h | |
parent | 6d77e94b652ab4b8070b5acf1c6febfe77fc41c3 (diff) |
resizing nodes (not fully working yet?)
Diffstat (limited to 'ted.h')
-rw-r--r-- | ted.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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. |