aboutsummaryrefslogtreecommitdiff
path: root/ui_input.h
diff options
context:
space:
mode:
authortoni <matzeton@googlemail.com>2014-12-07 03:11:36 +0100
committertoni <matzeton@googlemail.com>2014-12-07 03:11:36 +0100
commitfc17c62cd6872ad16b2f87857f346c3da66cd4a2 (patch)
tree1b86493ea011215ea8e9e63475755ece9bd42ce6 /ui_input.h
parentd9eec1d5a32976cc95cce59a5a4532fb5adea5b9 (diff)
- preparing majore update (ui_input) ..
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