From fc17c62cd6872ad16b2f87857f346c3da66cd4a2 Mon Sep 17 00:00:00 2001 From: toni Date: Sun, 7 Dec 2014 03:11:36 +0100 Subject: - preparing majore update (ui_input) .. --- ui_input.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'ui_input.h') 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 + 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 -- cgit v1.2.3