diff options
| author | verdant <im@verdant.ee> | 2026-07-27 09:27:42 +0800 |
|---|---|---|
| committer | verdant <im@verdant.ee> | 2026-07-27 09:27:42 +0800 |
| commit | 165534e03463cc1a0072f46cb1228b41890978af (patch) | |
| tree | 04e1a9921b9a90e879523d2084edde4f77530c9b /display.h | |
| parent | 8cb4f73bca481eb08448289c86a8e3b7392414cf (diff) | |
| download | sf-165534e03463cc1a0072f46cb1228b41890978af.tar.gz sf-165534e03463cc1a0072f46cb1228b41890978af.zip | |
Add display structure improvements
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 */ |
