summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-01-24 14:56:00 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-01-24 14:56:00 -0500
commit8c5eb397121c7fb3fa7feb2391d7c9b674b4190b (patch)
treecee9002f9e748eb4ca1861dd137abf366ac0ecba /ted.h
parentb9079377328e9abeb20950ac144a7ebd98fde88e (diff)
file selector much nicer interface
Diffstat (limited to 'ted.h')
-rw-r--r--ted.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ted.h b/ted.h
index 9746c6f..f1374b3 100644
--- a/ted.h
+++ b/ted.h
@@ -86,9 +86,11 @@ typedef struct {
typedef struct {
Rect bounds;
u32 n_entries;
+ u32 selected; // which FileEntry is currently selected
float scroll;
FileEntry *entries;
char cwd[TED_PATH_MAX];
+ bool open; // is the file selector on screen?
bool submitted; // set to true if the line buffer was just submitted this frame.
} FileSelector;