Tramway SDK
menu.h
Go to the documentation of this file.
1// TRAMWAY DRIFT AND DUNGEON EXPLORATION SIMULATOR 2022
2// All rights reserved.
3
4#ifndef TRAM_SDK_EXTENSIONS_MENU_MENU_H
5#define TRAM_SDK_EXTENSIONS_MENU_MENU_H
6
7#include <framework/gui.h>
8
9namespace tram::Ext::Menu {
10
11void Init();
12void Update();
13
19
20class Menu {
21public:
22 virtual void Display() = 0;
23 virtual uint32_t Layer() = 0;
24 virtual ~Menu() = default;
25
26 static void Push(Menu*);
27 static bool Pop();
28 static bool Empty();
29 static void Clear();
30
31 static void Add(Menu*);
32 static void Remove(Menu*);
33};
34
35}
36
37#endif
Definition: menu.h:20
static bool Pop()
Definition: menu.cpp:168
static void Clear()
Definition: menu.cpp:182
static void Add(Menu *)
Definition: menu.cpp:189
virtual ~Menu()=default
static bool Empty()
Definition: menu.cpp:178
virtual uint32_t Layer()=0
virtual void Display()=0
static void Remove(Menu *)
Definition: menu.cpp:193
static void Push(Menu *)
Definition: menu.cpp:163
Definition: debug.cpp:14
font_t FONT_PIXELART
Definition: menu.cpp:31
void Init()
Definition: menu.cpp:97
font_t FONT_WIDGETS
Definition: menu.cpp:27
font_t FONT_TEXT
Definition: menu.cpp:28
font_t FONT_TEXT_BOLD
Definition: menu.cpp:29
void Update()
Definition: menu.cpp:134
font_t FONT_HEADER
Definition: menu.cpp:30
uint32_t font_t
Definition: gui.h:15