- Create UI header with menu structures - Implement screen clearing and title display - Add message printing functionality - Foundation for menu-driven interface
23 lines
No EOL
369 B
C
23 lines
No EOL
369 B
C
#ifndef UI_H
|
|
#define UI_H
|
|
|
|
typedef void (*func_t)();
|
|
|
|
typedef struct {
|
|
char ItemStr[30];
|
|
func_t ItemFunc;
|
|
} MenuItem;
|
|
|
|
typedef struct {
|
|
char HeaderStr[30];
|
|
u32 ItemCount;
|
|
u32 StartLine;
|
|
u32 SelectedIndex;
|
|
MenuItem *Menu_Items;
|
|
} Menu;
|
|
|
|
void initUI();
|
|
void printMessage(const char* message, ...);
|
|
bool handleButtonPress(u64 button);
|
|
|
|
#endif |