diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-27 23:15:43 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-27 23:15:43 -0500 |
commit | 7089b92ff5606f1e9b934e2236b0295dcab922ae (patch) | |
tree | 41980ac3ef408fd8b89509a3b1670cd903feff22 /ted.h | |
parent | 2db1e71ace9d9a91e35ef57c3901c7ebae8f82f0 (diff) |
start tab moving
Diffstat (limited to 'ted.h')
-rw-r--r-- | ted.h | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -277,11 +277,14 @@ typedef struct Ted { // used by menus to keep track of the scroll position so we can return to it. v2d prev_active_buffer_scroll; - SDL_Cursor *cursor_arrow, *cursor_ibeam, *cursor_resize_h, *cursor_resize_v; + SDL_Cursor *cursor_arrow, *cursor_ibeam, *cursor_resize_h, *cursor_resize_v, *cursor_hand, *cursor_move; SDL_Cursor *cursor; // which cursor to use this frame - // index of buffer whose tab user is dragging around, 0 for none. - u16 dragging_tab; + // node containing tab user is dragging around, NULL if user is not dragging a tab + Node *dragging_tab_node; + // index in dragging_tab_node->tabs + u16 dragging_tab_idx; + v2 dragging_tab_origin; // where the tab is being dragged from (i.e. mouse pos at start of drag action) // if not NULL, points to the node whose split the user is currently resizing. Node *resizing_split; |