mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-19 20:53:52 +00:00
31 lines
534 B
C++
31 lines
534 B
C++
#ifndef OPENMW_LUAUI_ELEMENT
|
|
#define OPENMW_LUAUI_ELEMENT
|
|
|
|
#include "widget.hpp"
|
|
|
|
namespace LuaUi
|
|
{
|
|
struct Element
|
|
{
|
|
Element(sol::table layout)
|
|
: mRoot{ nullptr }
|
|
, mLayout{ layout }
|
|
, mUpdate{ false }
|
|
, mDestroy{ false }
|
|
{
|
|
}
|
|
|
|
LuaUi::WidgetExtension* mRoot;
|
|
sol::table mLayout;
|
|
bool mUpdate;
|
|
bool mDestroy;
|
|
|
|
void create();
|
|
|
|
void update();
|
|
|
|
void destroy();
|
|
};
|
|
}
|
|
|
|
#endif // !OPENMW_LUAUI_ELEMENT
|