mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 08:56:43 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			34 lines
		
	
	
	
		
			851 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
	
		
			851 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#ifndef OPENMW_LUAUI_WINDOW
 | 
						|
#define OPENMW_LUAUI_WINDOW
 | 
						|
 | 
						|
#include <optional>
 | 
						|
 | 
						|
#include "widget.hpp"
 | 
						|
#include "text.hpp"
 | 
						|
 | 
						|
namespace LuaUi
 | 
						|
{
 | 
						|
    class LuaWindow : public MyGUI::Widget, public WidgetExtension
 | 
						|
    {
 | 
						|
        MYGUI_RTTI_DERIVED(LuaWindow)
 | 
						|
 | 
						|
        public:
 | 
						|
            LuaWindow();
 | 
						|
            void updateTemplate() override;
 | 
						|
            void updateProperties() override;
 | 
						|
 | 
						|
        private:
 | 
						|
            LuaText* mCaption;
 | 
						|
            std::map<MyGUI::Widget*, WidgetExtension*> mActionWidgets;
 | 
						|
            MyGUI::IntPoint mPreviousMouse;
 | 
						|
            MyGUI::IntCoord mChangeScale;
 | 
						|
 | 
						|
            MyGUI::IntCoord mMoveResize;
 | 
						|
 | 
						|
        protected:
 | 
						|
            void notifyMousePress(MyGUI::Widget*, int, int, MyGUI::MouseButton);
 | 
						|
            void notifyMouseDrag(MyGUI::Widget*, int, int, MyGUI::MouseButton);
 | 
						|
    };
 | 
						|
}
 | 
						|
 | 
						|
#endif // OPENMW_LUAUI_WINDOW
 |