summaryrefslogtreecommitdiff
path: root/Editor/GUI/ContainerWindow.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-11-12 09:45:23 +0800
committerchai <chaifix@163.com>2021-11-12 09:45:23 +0800
commitbfbe1b31322030d0af6f4d010f578c0b3b3dde21 (patch)
tree493d0833e6fb9979df9519a77a0314ec59259c7c /Editor/GUI/ContainerWindow.cpp
parent8113eb9f4b1152c03ea7e4de632dcdde9b32b6bf (diff)
*split window
Diffstat (limited to 'Editor/GUI/ContainerWindow.cpp')
-rw-r--r--Editor/GUI/ContainerWindow.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/Editor/GUI/ContainerWindow.cpp b/Editor/GUI/ContainerWindow.cpp
index 99fa6cb..59cd008 100644
--- a/Editor/GUI/ContainerWindow.cpp
+++ b/Editor/GUI/ContainerWindow.cpp
@@ -431,6 +431,16 @@ void ContainerWindow::Close()
SendMessage(m_Window, WM_CLOSE, 0, 0);
}
+Vector2f ContainerWindow::GetSize()
+{
+ RECT rect;
+ GetClientRect(m_Window, &rect);
+ Vector2f size;
+ size.x = rect.right - rect.left;
+ size.y = rect.bottom - rect.top;
+ return size;
+}
+
void ContainerWindow::OnRectChanged()
{