You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openmw/components/lua_ui/element.hpp

32 lines
534 B
C++

3 years ago
#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