aboutsummaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-11-09 20:48:13 +0800
committercrupest <crupest@outlook.com>2020-11-09 20:48:13 +0800
commitc5fe6fc72e9bca222e6d7b94fd47523089083fdd (patch)
treec125bb895641cc155c4555dde1c45751d8f63ce2 /src/ui
parentbed29872d2a7befff9d4cb7313cb40060326a95e (diff)
downloadcru-c5fe6fc72e9bca222e6d7b94fd47523089083fdd.tar.gz
cru-c5fe6fc72e9bca222e6d7b94fd47523089083fdd.tar.bz2
cru-c5fe6fc72e9bca222e6d7b94fd47523089083fdd.zip
...
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/controls/RootControl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/controls/RootControl.cpp b/src/ui/controls/RootControl.cpp
index 1ebcb6e7..015703c3 100644
--- a/src/ui/controls/RootControl.cpp
+++ b/src/ui/controls/RootControl.cpp
@@ -26,6 +26,8 @@ render::RenderObject* RootControl::GetRenderObject() const {
void RootControl::EnsureWindowCreated() { this->GetNativeWindow(true); }
+Rect RootControl::GetRect() { return window_host_->GetWindowRect(); }
+
void RootControl::SetRect(const Rect& rect) {
window_host_->SetWindowRect(rect);
}