diff options
Diffstat (limited to 'client/ui.h')
-rw-r--r-- | client/ui.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/client/ui.h b/client/ui.h new file mode 100644 index 0000000..0d375de --- /dev/null +++ b/client/ui.h @@ -0,0 +1,27 @@ +#pragma once + +#include <ncurses.h> +#include <stdint.h> + +#define W2_UI_UPDATE_FPS (60) + +extern WINDOW *g_w2_ui_win; +extern unsigned int g_w2_ui_width; +extern unsigned int g_w2_ui_height; +extern void (*g_w2_ui_current_tab)(bool first); + +/** update terminal props */ +void w2_ui_update(); +/** clear screen */ +void w2_ui_clear(); +/** draw complete ui */ +void w2_ui_paint(); +/** update and paint */ +void w2_ui_main(); + +/** draw status bar */ +void w2_ui_paint_statusbar(); +/** draw tab bar */ +void w2_ui_paint_tabbar(); + +void w2_ui_dirc(bool first); |