12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- /*!
- * \file include/Menu.h
- * \brief Menu 'overlay'
- *
- * \author xythobuz
- */
-
- #ifndef _MENU_H_
- #define _MENU_H_
-
- #include <memory>
-
- #include "utils/Folder.h"
-
- /*!
- * \brief Menu 'overlay'
- */
- class Menu {
- public:
-
- /*!
- * \brief Constructs an object of Menu
- */
- Menu();
-
- /*!
- * \brief Deconstructs an object of Menu
- */
- ~Menu();
-
- int initialize();
- int initialize(std::string folder);
- int initialize(Folder *folder);
-
- void setVisible(bool visible);
-
- bool isVisible();
-
- void display();
-
- void handleKeyboard(KeyboardButton key, bool pressed);
-
- void handleMouseClick(unsigned int x, unsigned int y, KeyboardButton button, bool released);
-
- void handleMouseScroll(int xrel, int yrel);
-
- private:
-
- void play();
-
- bool mVisible;
- long mCursor;
- long mMin;
-
- Folder *mapFolder;
- bool hiddenState;
- };
-
- Menu &getMenu();
-
- #endif
|