diff options
author | toni <matzeton@googlemail.com> | 2014-12-07 03:11:36 +0100 |
---|---|---|
committer | toni <matzeton@googlemail.com> | 2014-12-07 03:11:36 +0100 |
commit | fc17c62cd6872ad16b2f87857f346c3da66cd4a2 (patch) | |
tree | 1b86493ea011215ea8e9e63475755ece9bd42ce6 /ui_input.h | |
parent | d9eec1d5a32976cc95cce59a5a4532fb5adea5b9 (diff) |
- preparing majore update (ui_input) ..
Diffstat (limited to 'ui_input.h')
-rw-r--r-- | ui_input.h | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -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 |