summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-27 23:15:43 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-27 23:15:43 -0500
commit7089b92ff5606f1e9b934e2236b0295dcab922ae (patch)
tree41980ac3ef408fd8b89509a3b1670cd903feff22 /ted.h
parent2db1e71ace9d9a91e35ef57c3901c7ebae8f82f0 (diff)
start tab moving
Diffstat (limited to 'ted.h')
-rw-r--r--ted.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/ted.h b/ted.h
index f92425f..da79178 100644
--- a/ted.h
+++ b/ted.h
@@ -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;