aboutsummaryrefslogtreecommitdiff
path: root/ui_statusbar.h
diff options
context:
space:
mode:
authortoni <matzeton@googlemail.com>2014-12-13 15:46:07 +0100
committertoni <matzeton@googlemail.com>2014-12-13 15:46:07 +0100
commitc6ca9fac6fddbbcca316b6d7925b4e596da074f5 (patch)
treeff73e54a8616c5f0359f5bda67f017d5b752df89 /ui_statusbar.h
parentc84eb34e622bd1afca38b175f882b509170f12fe (diff)
- ui statusbar (work in progress)
Diffstat (limited to 'ui_statusbar.h')
-rw-r--r--ui_statusbar.h29
1 files changed, 29 insertions, 0 deletions
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 <ncurses.h>
+
+
+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