mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 22:54:34 +00:00
PlatformSDL implementation.
This commit is contained in:
parent
21d58bb191
commit
aa35157eef
33 changed files with 3971 additions and 151 deletions
35
Engine/source/platformSDL/menus/PlatformSDLPopupMenuData.h
Normal file
35
Engine/source/platformSDL/menus/PlatformSDLPopupMenuData.h
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
#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
|
||||
Loading…
Add table
Add a link
Reference in a new issue