mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-08-02 04:36:22 +00:00
Added title bar redraw
This commit is contained in:
12
title_bar.c
12
title_bar.c
@@ -63,6 +63,18 @@ void title_bar_disconnected(void)
|
|||||||
_title_bar_draw_status();
|
_title_bar_draw_status();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void title_bar_redraw(void)
|
||||||
|
{
|
||||||
|
int rows, cols;
|
||||||
|
getmaxyx(stdscr, rows, cols);
|
||||||
|
|
||||||
|
title_bar = newwin(1, cols, 0, 0);
|
||||||
|
wbkgd(title_bar, COLOR_PAIR(3));
|
||||||
|
_title_bar_draw_title();
|
||||||
|
_title_bar_draw_status();
|
||||||
|
dirty = TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
void title_bar_refresh(void)
|
void title_bar_refresh(void)
|
||||||
{
|
{
|
||||||
if (dirty) {
|
if (dirty) {
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ void gui_close(void)
|
|||||||
|
|
||||||
void gui_resize(const int ch, const char * const input, const int size)
|
void gui_resize(const int ch, const char * const input, const int size)
|
||||||
{
|
{
|
||||||
create_title_bar();
|
title_bar_redraw();
|
||||||
create_status_bar();
|
create_status_bar();
|
||||||
create_input_window();
|
create_input_window();
|
||||||
inp_win_write(input, size);
|
inp_win_write(input, size);
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ void create_input_window(void);
|
|||||||
|
|
||||||
// title bar actions
|
// title bar actions
|
||||||
void title_bar_refresh(void);
|
void title_bar_refresh(void);
|
||||||
|
void title_bar_redraw(void);
|
||||||
void title_bar_show(const char * const title);
|
void title_bar_show(const char * const title);
|
||||||
void title_bar_title(void);
|
void title_bar_title(void);
|
||||||
void title_bar_connected(void);
|
void title_bar_connected(void);
|
||||||
|
|||||||
Reference in New Issue
Block a user