PlatformSDLPopupMenuData.h
Engine/source/platformSDL/menus/PlatformSDLPopupMenuData.h
Classes:
Detailed Description
1 2#ifndef PLATFORM_SDL_POPUPMENU_DATA_H 3#define PLATFORM_SDL_POPUPMENU_DATA_H 4 5#include "core/util/tDictionary.h" 6 7class GuiMenuBar; 8struct EventDescriptor; 9class PopupMenu; 10class MenuBar; 11 12struct PlatformPopupMenuData 13{ 14 MenuBar *mMenuBar; 15 GuiMenuBar::Menu *mMenuGui; 16 17 static const U8 mCheckedBitmapIdx = 0; 18 static Map<GuiMenuBar::Menu*, PopupMenu*> mMenuMap; 19 20 PlatformPopupMenuData() 21 { 22 mMenuBar = NULL; 23 mMenuGui = NULL; 24 } 25 26 ~PlatformPopupMenuData() 27 { 28 29 } 30 31 void insertAccelerator(EventDescriptor &desc, U32 id); 32 void removeAccelerator(U32 id); 33 void setAccelleratorEnabled(U32 id, bool enabled); 34}; 35 36#endif //PLATFORM_SDL_POPUPMENU_DATA_H 37
