2020-04-04 14:27:02 +02:00
|
|
|
#ifndef __MENU_H__
|
|
|
|
#define __MENU_H__
|
|
|
|
|
2020-04-23 15:20:48 +02:00
|
|
|
#include "../cpp_foundation/XString.h"
|
2020-04-04 14:27:02 +02:00
|
|
|
#include "../gui/menu_items/menu_items.h"
|
2021-03-22 13:40:01 +01:00
|
|
|
//#include "../gui/REFIT_MAINMENU_SCREEN.h"
|
|
|
|
class REFIT_MAINMENU_SCREEN;
|
2020-02-29 08:30:21 +01:00
|
|
|
|
2020-10-03 19:02:31 +02:00
|
|
|
//void AddMenuInfoLine(IN REFIT_MENU_SCREEN *Screen, IN CONST CHAR16 *InfoLine);
|
|
|
|
//void AddMenuInfo(IN REFIT_MENU_SCREEN *SubScreen, IN CONST CHAR16 *Line);
|
2021-09-28 15:54:31 +02:00
|
|
|
//void AddMenuEntry(IN REFIT_MENU_SCREEN *Screen, IN REFIT_MENU_ENTRY *Entry, XBool freeIt);
|
2020-10-03 19:02:31 +02:00
|
|
|
//void AddMenuCheck(REFIT_MENU_SCREEN *SubScreen, CONST CHAR8 *Text, UINTN Bit, INTN ItemNum);
|
|
|
|
//void FreeMenu(IN REFIT_MENU_SCREEN *Screen);
|
2020-03-03 21:44:07 +01:00
|
|
|
//UINTN RunMenu(IN REFIT_MENU_SCREEN *Screen, OUT REFIT_ABSTRACT_MENU_ENTRY **ChosenEntry);
|
|
|
|
//UINTN RunMainMenu(IN REFIT_MENU_SCREEN *Screen, IN INTN DefaultSelection, OUT REFIT_ABSTRACT_MENU_ENTRY **ChosenEntry);
|
2020-03-27 06:54:41 +01:00
|
|
|
|
2020-04-10 12:04:21 +02:00
|
|
|
//included into SCREEN
|
|
|
|
/*
|
2020-04-04 14:27:02 +02:00
|
|
|
extern EG_RECT UpButton;
|
|
|
|
extern EG_RECT DownButton;
|
|
|
|
extern EG_RECT BarStart;
|
|
|
|
extern EG_RECT BarEnd;
|
|
|
|
extern EG_RECT ScrollbarBackground;
|
|
|
|
extern EG_RECT Scrollbar;
|
|
|
|
extern EG_RECT ScrollStart;
|
|
|
|
extern EG_RECT ScrollEnd;
|
|
|
|
extern EG_RECT ScrollTotal;
|
|
|
|
extern EG_RECT ScrollbarOldPointerPlace;
|
|
|
|
extern EG_RECT ScrollbarNewPointerPlace;
|
2020-04-10 12:04:21 +02:00
|
|
|
*/
|
2020-04-04 14:27:02 +02:00
|
|
|
extern INTN LayoutAnimMoveForMenuX;
|
|
|
|
extern INTN LayoutMainMenuHeight;
|
|
|
|
|
2021-03-22 13:40:01 +01:00
|
|
|
extern REFIT_MAINMENU_SCREEN MainMenu;
|
2020-04-04 14:27:02 +02:00
|
|
|
|
2020-10-03 19:02:31 +02:00
|
|
|
void OptionsMenu(OUT REFIT_ABSTRACT_MENU_ENTRY **ChosenEntry);
|
|
|
|
void FreeScrollBar(void);
|
2020-02-29 08:30:21 +01:00
|
|
|
|
2020-10-03 19:02:31 +02:00
|
|
|
void
|
2020-04-16 09:15:26 +02:00
|
|
|
FillInputs (
|
2021-09-28 10:28:45 +02:00
|
|
|
XBool New
|
2020-04-16 09:15:26 +02:00
|
|
|
);
|
|
|
|
|
2020-10-03 19:02:31 +02:00
|
|
|
void
|
|
|
|
ApplyInputs (void);
|
2020-03-03 21:44:07 +01:00
|
|
|
|
2020-04-04 14:27:02 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|