aboutsummaryrefslogtreecommitdiffstats
path: root/Library/UefiShellUfmCommandLib/menu-bar.c
blob: 05033888d100b8370e5e60c56cbb5b439da33a8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include <Library/DebugLib.h>

#include "tbi/screen.h"
#include "tbi/win.h"
#include "menu-bar.h"

struct window *init_menubar(struct screen *scr)
{
	struct window *menubar = newwin(scr, scr->columns, 1, 0, 0);
	if(!menubar)
		return NULL;

	mvwprintf(menubar, 0, 0, L"Menu bar");
	menubar_refresh(menubar);
	return menubar;
}

VOID free_menubar(struct window *w)
{
	ASSERT(w != NULL);

	delwin(w);
}

VOID menubar_refresh(struct window *w)
{
	ASSERT(w != NULL);
	
	wrefresh(w);
}