#ifndef OPENMW_LUAUI_ADAPTER #define OPENMW_LUAUI_ADAPTER #include #include namespace LuaUi { class LuaContainer; struct Element; class LuaAdapter : public MyGUI::Widget { MYGUI_RTTI_DERIVED(LuaAdapter) public: LuaAdapter(); void attach(const std::shared_ptr& element); void detach(); private: std::shared_ptr mElement; LuaContainer* mContainer; void attachElement(); void detachElement(); void containerChangedCoord(MyGUI::Widget*); }; } #endif // !OPENMW_LUAUI_ADAPTER