mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 08:26:39 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			31 lines
		
	
	
	
		
			571 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
	
		
			571 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
 |