summaryrefslogtreecommitdiff
path: root/Editor/GUI/WindowBase.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-11-08 09:23:38 +0800
committerchai <chaifix@163.com>2021-11-08 09:23:38 +0800
commit138d3f4d3d6e2aaf5ba34f89af15ef85ea074357 (patch)
tree31ca6e8ea6d2e960e8d35f801bd92555942822e2 /Editor/GUI/WindowBase.h
parentefce5b6bd5c9d4f8214a71e0f7a7c35751710a4c (diff)
*misc
Diffstat (limited to 'Editor/GUI/WindowBase.h')
-rw-r--r--Editor/GUI/WindowBase.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/Editor/GUI/WindowBase.h b/Editor/GUI/WindowBase.h
new file mode 100644
index 0000000..cf3cae6
--- /dev/null
+++ b/Editor/GUI/WindowBase.h
@@ -0,0 +1,43 @@
+#pragma once
+
+#include <windows.h>
+#include <vector>
+#include "Runtime/Math/Rect.h"
+#include "Runtime/Lua/LuaBind/LuaBind.h"
+#include "Runtime/Lua/LuaHelper.h"
+#include "Runtime/Utilities/Singleton.h"
+#include "Runtime/Debug/Log.h"
+#include "Runtime/Graphics/OpenGL.h"
+#include "Runtime/Utilities/UtilMacros.h"
+#include "Editor/Utils/HelperFuncs.h"
+#include "Runtime/Math/Math.h"
+#include "Runtime/Utilities/Exception.h"
+
+class WindowBase
+{
+};
+
+CustomException(WindowException);
+
+class GUIWindow;
+
+class WindowUtil
+{
+public:
+ static void RegisterClasses();
+
+ static const wchar_t* kContainerWindowClassName;
+ static const wchar_t* kPopupWindowClassName;
+ static const wchar_t* kGUIWindowClassName;
+};
+
+class WindowManager : Singleton<WindowManager>
+{
+public:
+ static Vector2 GetMousePosition();
+ static GUIWindow* GetMouseOverWindow();
+
+private:
+ static std::vector<GUIWindow*> s_GUIWindows;
+
+};