From 86a10e053154cb52ab7d051b98a6366c6165c02b Mon Sep 17 00:00:00 2001 From: katalx Date: Wed, 28 Jan 2026 19:07:23 -0500 Subject: cleanly separate xlib and menu code --- ui.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'ui.h') 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 -- cgit v1.2.3