diff options
Diffstat (limited to 'display.h')
| -rw-r--r-- | display.h | 22 |
1 files changed, 19 insertions, 3 deletions
@@ -4,6 +4,7 @@ #include <ncurses.h> #include <stdlib.h> +#include "dir.h" #include "log.h" #include "mem.h" @@ -18,10 +19,24 @@ #define BAR_LABEL_WIDTH 7 #define STAT_BAR_HEIGHT 1 +#define FM_PANE_LEFT 0 +#define FM_PANE_RIGHT 1 + #include "wm.h" -void color_pair_init(); -terminal *ncurses_init(); +typedef struct { + size_t top; + size_t bottom; + size_t height; + size_t widght; + size_t margin; + bool need_redraw; + window *left; + window *right; +} view_stat; + +void color_pair_init(void); +terminal *ncurses_init(void); static inline WINDOW *get_root_win(const terminal *t) { @@ -39,7 +54,8 @@ static inline WINDOW *get_root_win(const terminal *t) #define ROOT_WIN get_root_win(t) void draw_stat_bar(terminal *t, const char *sys_version); - void wprintw_colorful(WINDOW *w, int attr, const char *format, ...); +void handle_resize(void); +void redraw(void); #endif /* SF_DISPLAY_H */ |
