mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-16 13:29:56 +00:00
31 lines
597 B
C++
31 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
|