/*! * \file include/Menu.h * \brief Menu 'overlay' interface * * \author xythobuz */ #ifndef _MENU_H_ #define _MENU_H_ #include #include "UI.h" /*! * \brief Menu 'overlay' */ class Menu : public UI { public: virtual ~Menu() { } virtual int initialize() = 0; protected: virtual void showDialog(std::string msg, std::string btn1, std::string btn2, std::function callback = std::function()); virtual void ackDialog(); virtual bool handleKeyboardDialog(KeyboardButton key, bool pressed); virtual bool handleMouseClickDialog(unsigned int x, unsigned int y, KeyboardButton button, bool released); virtual bool handleMouseScrollDialog(int xrel, int yrel); virtual void displayDialog(); bool dialogState; std::string dialogText; std::string dialogButton1; std::string dialogButton2; std::function dialogFunction; }; Menu &getMenu(); #endif