summaryrefslogtreecommitdiff
path: root/ui.h
diff options
context:
space:
mode:
authorkatalx2026-01-28 19:07:23 -0500
committerkatalx2026-01-28 19:07:23 -0500
commit86a10e053154cb52ab7d051b98a6366c6165c02b (patch)
tree51fc293b01b24c453d2b2a15db901e55ec065d0b /ui.h
parentccec3e7f471e727fd008eb94454412281b8a4e43 (diff)
cleanly separate xlib and menu code
Diffstat (limited to 'ui.h')
-rw-r--r--ui.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/ui.h b/ui.h
index 9263a28..25ac537 100644
--- a/ui.h
+++ b/ui.h
@@ -1,6 +1,8 @@
#ifndef UI_H
#define UI_H
+#include "str.h"
+
typedef enum {
UI_REDRAW,
UI_KEY_DOWN,
@@ -8,6 +10,8 @@ typedef enum {
} UiEventType;
typedef enum {
+ UIK_ESCAPE,
+ UIK_BACKSPACE,
UIK_UP,
UIK_DOWN,
UIK_LEFT,
@@ -33,9 +37,9 @@ typedef struct {
};
} UiEvent;
-void ui_init(void);
+void ui_init(int argc, char **argv);
void ui_fini(void);
-void ui_draw(Str input, int seli, Str *opt, int optn);
+void ui_draw(Str input, int inpi, int seli, Str *optv, int optc);
int ui_wait_event(UiEvent *e);
#endif