mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-07 03:54:40 +00:00
32 lines
597 B
C++
32 lines
597 B
C++
#ifndef OPENMW_LUAUI_ELEMENT
|
|
#define OPENMW_LUAUI_ELEMENT
|
|
|
|
#include "widget.hpp"
|
|
|
|
namespace LuaUi
|
|
{
|
|
struct Element
|
|
{
|
|
static std::shared_ptr<Element> make(sol::table layout);
|
|
|
|
LuaUi::WidgetExtension* mRoot;
|
|
sol::table mLayout;
|
|
bool mUpdate;
|
|
bool mDestroy;
|
|
|
|
void create();
|
|
|
|
void update();
|
|
|
|
void destroy();
|
|
|
|
friend void clearUserInterface();
|
|
|
|
private:
|
|
Element(sol::table layout);
|
|
static std::map<Element*, std::shared_ptr<Element>> sAllElements;
|
|
};
|
|
}
|
|
|
|
#endif // !OPENMW_LUAUI_ELEMENT
|