diff options
| author | katalx | 2026-01-28 19:07:23 -0500 |
|---|---|---|
| committer | katalx | 2026-01-28 19:07:23 -0500 |
| commit | 86a10e053154cb52ab7d051b98a6366c6165c02b (patch) | |
| tree | 51fc293b01b24c453d2b2a15db901e55ec065d0b /ui.h | |
| parent | ccec3e7f471e727fd008eb94454412281b8a4e43 (diff) | |
cleanly separate xlib and menu code
Diffstat (limited to 'ui.h')
| -rw-r--r-- | ui.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 |
