aboutsummaryrefslogtreecommitdiff
path: root/ui_input.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui_input.h')
-rw-r--r--ui_input.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/ui_input.h b/ui_input.h
index 2a1699c..b9e816e 100644
--- a/ui_input.h
+++ b/ui_input.h
@@ -3,16 +3,21 @@
#include <ncurses.h>
+
struct input {
- bool box;
- bool shadow;
+ unsigned int x;
+ unsigned int y;
+ unsigned int width;
char *input;
+ size_t input_max;
size_t input_len;
+ size_t input_pos;
char *prompt;
+ bool active;
};
struct input *
-init_input(bool box, bool shadow, char *prompt, size_t input_len);
+init_input(unsigned int x, unsigned int y, unsigned int width, char *prompt, size_t input_len);
void
free_input(struct input *a);
@@ -21,6 +26,6 @@ int
input_cb(WINDOW *win, void *data, bool needs_update);
void
-register_input(unsigned int x, unsigned int y, unsigned int width, unsigned int height, struct input *a, chtype attr);
+register_input(WINDOW *win, struct input *a, chtype attr);
#endif