1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- /*!
- * \file include/Menu.h
- * \brief Menu 'overlay'
- *
- * \author xythobuz
- */
-
- #ifndef _MENU_H_
- #define _MENU_H_
-
- #include "Window.h"
-
- /*!
- * \brief Menu 'overlay'
- */
- class Menu {
- public:
-
- /*!
- * \brief Constructs an object of Menu
- */
- Menu();
-
- /*!
- * \brief Deconstructs an object of Menu
- */
- ~Menu();
-
- void setVisible(bool visible);
-
- bool isVisible();
-
- void display();
-
- void actionMouse(unsigned int x, unsigned int y, int button);
-
- void actionKeyboard(int key);
-
- private:
-
- void drawText(unsigned int x, unsigned int y, float scale, const char *s, ...) __attribute__((format(printf, 5, 0)));
-
- bool mVisible;
- WindowString mainText;
- };
-
- #endif
|