diff options
author | chai <chaifix@163.com> | 2021-11-17 00:46:58 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-11-17 00:46:58 +0800 |
commit | 9421ca53788e51a92b28056e06af3d9dd6b4d92c (patch) | |
tree | 045519df1b7eacbadd8af5df79c1367869514dc8 /Editor/GUI/GUIWindow.h | |
parent | 1f5b75d39721ad40483f1b188af2e965fbe205ac (diff) |
*rename
Diffstat (limited to 'Editor/GUI/GUIWindow.h')
-rw-r--r-- | Editor/GUI/GUIWindow.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Editor/GUI/GUIWindow.h b/Editor/GUI/GUIWindow.h index aed38d9..bbf2687 100644 --- a/Editor/GUI/GUIWindow.h +++ b/Editor/GUI/GUIWindow.h @@ -14,6 +14,25 @@ #include "Runtime/Utilities/Exception.h" #include "WindowUtil.h" +class GUIWindow; + +class GUIWindowProxy : public LuaObjectProxy +{ +public: + GUIWindow * owner; + LuaBind::MemberRef script; + + GUIWindowProxy() {} + GUIWindowProxy(GUIWindow *owner, LuaBind::MemberRef script); + + void DoGUI(); + void DoClean(); + +private: + void OnGUI(LuaBind::State& state); + +}; + // GUI窗口,事件相应、绘制、布局的单元 class GUIWindow : public WindowBase @@ -47,6 +66,7 @@ private: std::string m_Name; LuaBind::MemberRef m_Script; + GUIWindowProxy m_Instance; BOOL m_MouseTracking; DWORD m_MouseHoverTime; |