From c5fe6fc72e9bca222e6d7b94fd47523089083fdd Mon Sep 17 00:00:00 2001 From: crupest Date: Mon, 9 Nov 2020 20:48:13 +0800 Subject: ... --- src/ui/controls/RootControl.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ui/controls/RootControl.cpp') 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); } -- cgit v1.2.3