PlatformSDLPopupMenuData.h 690 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef PLATFORM_SDL_POPUPMENU_DATA_H
  2. #define PLATFORM_SDL_POPUPMENU_DATA_H
  3. #include "core/util/tDictionary.h"
  4. class GuiMenuBar;
  5. struct EventDescriptor;
  6. class PopupMenu;
  7. class MenuBar;
  8. struct PlatformPopupMenuData
  9. {
  10. MenuBar *mMenuBar;
  11. GuiMenuBar::Menu *mMenuGui;
  12. static const U8 mCheckedBitmapIdx = 0;
  13. static Map<GuiMenuBar::Menu*, PopupMenu*> mMenuMap;
  14. PlatformPopupMenuData()
  15. {
  16. mMenuBar = NULL;
  17. mMenuGui = NULL;
  18. }
  19. ~PlatformPopupMenuData()
  20. {
  21. }
  22. void insertAccelerator(EventDescriptor &desc, U32 id);
  23. void removeAccelerator(U32 id);
  24. void setAccelleratorEnabled(U32 id, bool enabled);
  25. };
  26. #endif //PLATFORM_SDL_POPUPMENU_DATA_H