From 32154ede9cf6d2055617a4cb62534b02841ecf5b Mon Sep 17 00:00:00 2001 From: toni Date: Sat, 13 Dec 2014 15:46:07 +0100 Subject: - ui statusbar (work in progress) --- ui_statusbar.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 ui_statusbar.h (limited to 'ui_statusbar.h') diff --git a/ui_statusbar.h b/ui_statusbar.h new file mode 100644 index 0000000..334505a --- /dev/null +++ b/ui_statusbar.h @@ -0,0 +1,29 @@ +#ifndef UI_STATUSBAR_H +#define UI_STATUSBAR_H 1 + +#include + + +struct statusbar { + unsigned int y; + unsigned int width; + char *text; + chtype attrs; +}; + +struct statusbar * +init_statusbar(unsigned int y, unsigned int width, chtype attrs); + +void +free_statusbar(struct statusbar *a); + +int +statusbar_cb(WINDOW *win, void *data, bool timed_out); + +void +register_statusbar(struct statusbar *a); + +void +set_statusbar_text(struct statusbar *a, const char *text); + +#endif -- cgit v1.2.3