mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-22 13:44:44 +00:00
35 lines
690 B
C++
35 lines
690 B
C++
#ifndef PLATFORM_SDL_POPUPMENU_DATA_H
|
|
#define PLATFORM_SDL_POPUPMENU_DATA_H
|
|
|
|
#include "core/util/tDictionary.h"
|
|
|
|
class GuiMenuBar;
|
|
struct EventDescriptor;
|
|
class PopupMenu;
|
|
class MenuBar;
|
|
|
|
struct PlatformPopupMenuData
|
|
{
|
|
MenuBar *mMenuBar;
|
|
GuiMenuBar::Menu *mMenuGui;
|
|
|
|
static const U8 mCheckedBitmapIdx = 0;
|
|
static Map<GuiMenuBar::Menu*, PopupMenu*> mMenuMap;
|
|
|
|
PlatformPopupMenuData()
|
|
{
|
|
mMenuBar = NULL;
|
|
mMenuGui = NULL;
|
|
}
|
|
|
|
~PlatformPopupMenuData()
|
|
{
|
|
|
|
}
|
|
|
|
void insertAccelerator(EventDescriptor &desc, U32 id);
|
|
void removeAccelerator(U32 id);
|
|
void setAccelleratorEnabled(U32 id, bool enabled);
|
|
};
|
|
|
|
#endif //PLATFORM_SDL_POPUPMENU_DATA_H
|