mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-24 07:05:39 +00:00
22 lines
480 B
C
22 lines
480 B
C
|
#pragma once
|
||
|
|
||
|
#include "GuiComponent.h"
|
||
|
#include "components/MenuComponent.h"
|
||
|
#include <functional>
|
||
|
|
||
|
class GuiMenu : public GuiComponent
|
||
|
{
|
||
|
public:
|
||
|
GuiMenu(Window* window);
|
||
|
|
||
|
bool input(InputConfig* config, Input input) override;
|
||
|
void onSizeChanged() override;
|
||
|
std::vector<HelpPrompt> getHelpPrompts() override;
|
||
|
|
||
|
private:
|
||
|
void addEntry(const char* name, unsigned int color, bool add_arrow, const std::function<void()>& func);
|
||
|
|
||
|
MenuComponent mMenu;
|
||
|
TextComponent mVersion;
|
||
|
};
|