1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-06 00:55:50 +00:00
OpenMW/components/lua_ui/adapter.hpp

34 lines
624 B
C++
Raw Normal View History

#ifndef OPENMW_LUAUI_ADAPTER
#define OPENMW_LUAUI_ADAPTER
2022-01-29 22:43:08 +00:00
#include <memory>
#include <MyGUI_Widget.h>
namespace LuaUi
{
class LuaContainer;
struct Element;
class LuaAdapter : public MyGUI::Widget
{
MYGUI_RTTI_DERIVED(LuaAdapter)
2022-09-22 18:26:05 +00:00
public:
LuaAdapter();
2022-09-22 18:26:05 +00:00
void attach(const std::shared_ptr<Element>& element);
void detach();
2022-09-22 18:26:05 +00:00
private:
std::shared_ptr<Element> mElement;
LuaContainer* mContainer;
2022-01-29 22:43:08 +00:00
2022-09-22 18:26:05 +00:00
void attachElement();
void detachElement();
2023-11-17 17:02:34 +00:00
void containerChangedCoord(MyGUI::Widget*);
};
}
#endif // !OPENMW_LUAUI_ADAPTER