2014-06-25 16:29:58 +00:00
|
|
|
#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;
|
2017-05-28 18:13:00 +00:00
|
|
|
HelpStyle getHelpStyle() override;
|
2014-06-25 16:29:58 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
void addEntry(const char* name, unsigned int color, bool add_arrow, const std::function<void()>& func);
|
2017-06-01 20:08:44 +00:00
|
|
|
void openScreensaverOptions();
|
2014-06-25 16:29:58 +00:00
|
|
|
MenuComponent mMenu;
|
|
|
|
TextComponent mVersion;
|
|
|
|
};
|