From d453eedc5282074af83375532e8edcb68ada3300 Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Thu, 25 Feb 2021 19:52:40 -0500 Subject: started tab moving --- ted.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ted.h') diff --git a/ted.h b/ted.h index 784001f..f92425f 100644 --- a/ted.h +++ b/ted.h @@ -280,6 +280,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 + // index of buffer whose tab user is dragging around, 0 for none. + u16 dragging_tab; + // if not NULL, points to the node whose split the user is currently resizing. Node *resizing_split; @@ -304,6 +307,7 @@ typedef struct Ted { char tags_dir[TED_PATH_MAX]; // where we are reading tags from bool nodes_used[TED_MAX_NODES]; Node nodes[TED_MAX_NODES]; + // NOTE: the buffer at index 0 is reserved as a "null buffer" and should not be used. bool buffers_used[TED_MAX_BUFFERS]; TextBuffer buffers[TED_MAX_BUFFERS]; char window_title[256]; -- cgit v1.2.3