summaryrefslogtreecommitdiff
path: root/client/ui.h
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-06-06 18:32:04 +0200
committerlonkaars <loek@pipeframe.xyz>2022-06-06 18:32:04 +0200
commit8c1d31ef16745cee07059788386cd88c718092ac (patch)
treee944221ef69f38393790e337e85eb9edfe17a559 /client/ui.h
parenta909440c7671075127a98cffd7f1714114fc17bd (diff)
code organization
Diffstat (limited to 'client/ui.h')
-rw-r--r--client/ui.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/client/ui.h b/client/ui.h
index a4c4ed1..cbf18ee 100644
--- a/client/ui.h
+++ b/client/ui.h
@@ -5,12 +5,19 @@
#define W2_UI_UPDATE_FPS (60)
+#define W2_UI_TAB_COUNT 2
+typedef enum {
+ W2_UI_TAB_START = 0,
+ W2_UI_TAB_DIRC = 1,
+} w2_e_ui_tab;
+
extern WINDOW *g_w2_ui_win;
extern WINDOW *g_w2_ui_pad_tabbar;
extern WINDOW *g_w2_ui_pad_body;
extern unsigned int g_w2_ui_width;
extern unsigned int g_w2_ui_height;
-extern void (*g_w2_ui_current_tab)(bool first);
+extern void (*g_w2_tab_ptrs[W2_UI_TAB_COUNT])(bool first);
+extern w2_e_ui_tab g_w2_ui_current_tab;
/** update terminal props */
void w2_ui_update();
@@ -26,7 +33,13 @@ void w2_ui_paint_statusbar();
/** draw tab bar */
void w2_ui_paint_tabbar();
-void w2_ui_dirc(bool first);
+void w2_ui_tabbar_init();
+
+void w2_ui_tab_dirc(bool first);
+void w2_ui_tab_start(bool first);
void w2_wmvaddstr(WINDOW *win, unsigned int y, unsigned int x, char *str);
void w2_wmvaddnstr(WINDOW *win, unsigned int y, unsigned int x, char *str, unsigned int len);
+
+
+