ES-DE/es-app/src/guis/GuiMenu.h

42 lines
878 B
C
Raw Normal View History

//
// GuiMenu.h
//
// Main menu.
//
#pragma once
#ifndef ES_APP_GUIS_GUI_MENU_H
#define ES_APP_GUIS_GUI_MENU_H
#include "components/MenuComponent.h"
2017-11-01 22:21:10 +00:00
#include "GuiComponent.h"
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;
private:
void addEntry(const char* name, unsigned int color,
bool add_arrow, const std::function<void()>& func);
void addVersionInfo();
void openCollectionSystemSettings();
void openConfigInput();
void openOtherSettings();
void openQuitMenu();
void openScraperSettings();
void openScreensaverOptions();
void openSoundSettings();
void openUISettings();
MenuComponent mMenu;
TextComponent mVersion;
};
#endif // ES_APP_GUIS_GUI_MENU_H