diff options
author | Joursoir <chat@joursoir.net> | 2021-11-04 03:28:28 +0300 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2021-11-04 03:28:28 +0300 |
commit | 2498e52020252a6f915c6c5242509fe06e6b02e8 (patch) | |
tree | f508be0629e2a6617e772449e6caba4ca4f435b3 /src/menu-bar.c | |
parent | 854718a302d46a588bd2aa1a62664569b6f41553 (diff) | |
download | ufm-2498e52020252a6f915c6c5242509fe06e6b02e8.tar.gz ufm-2498e52020252a6f915c6c5242509fe06e6b02e8.tar.bz2 ufm-2498e52020252a6f915c6c5242509fe06e6b02e8.zip |
implement the menu bar
Diffstat (limited to 'src/menu-bar.c')
-rw-r--r-- | src/menu-bar.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/menu-bar.c b/src/menu-bar.c new file mode 100644 index 0000000..db7af38 --- /dev/null +++ b/src/menu-bar.c @@ -0,0 +1,25 @@ +#include <Library/DebugLib.h> + +#include "lib/tbi/screen.h" +#include "lib/tbi/win.h" +#include "menu-bar.h" + +struct window *menubar = NULL; + +BOOLEAN init_menubar(struct screen *scr) +{ + menubar = newwin(scr, scr->columns, 1, 0, 0); + if(!menubar) + return FALSE; + + wrefresh(menubar); + return TRUE; +} + +VOID free_menubar(VOID) +{ + ASSERT(menubar != NULL); + + delwin(menubar); + menubar = NULL; +} |