Open Source Tomb Raider Engine
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Menu.h 711B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*!
  2. * \file include/Menu.h
  3. * \brief Menu 'overlay'
  4. *
  5. * \author xythobuz
  6. */
  7. #ifndef _MENU_H_
  8. #define _MENU_H_
  9. #include "Window.h"
  10. /*!
  11. * \brief Menu 'overlay'
  12. */
  13. class Menu {
  14. public:
  15. /*!
  16. * \brief Constructs an object of Menu
  17. */
  18. Menu();
  19. /*!
  20. * \brief Deconstructs an object of Menu
  21. */
  22. ~Menu();
  23. void setVisible(bool visible);
  24. bool isVisible();
  25. void display();
  26. void actionMouse(unsigned int x, unsigned int y, int button);
  27. void actionKeyboard(int key);
  28. private:
  29. void drawText(unsigned int x, unsigned int y, float scale, const char *s, ...) __attribute__((format(printf, 5, 0)));
  30. bool mVisible;
  31. WindowString mainText;
  32. };
  33. #endif