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/adapter.hpp

32 lines
607 B
C++

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