aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/cru/ui/controls/RootControl.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/cru/ui/controls/RootControl.hpp b/include/cru/ui/controls/RootControl.hpp
index ff1b545a..d41f02d8 100644
--- a/include/cru/ui/controls/RootControl.hpp
+++ b/include/cru/ui/controls/RootControl.hpp
@@ -18,10 +18,17 @@ class RootControl : public LayoutControl {
public:
render::RenderObject* GetRenderObject() const override;
+ void EnsureWindowCreated();
+
// If create is false and native window is not create, it will not be created
// and shown.
void Show(bool create = true);
+ // If native window does not exist, nothing will be done. It will not save it
+ // and use it when creating window. So call this after ensuring window
+ // created.
+ void SetRect(const Rect& rect);
+
protected:
virtual gsl::not_null<platform::gui::INativeWindow*> CreateNativeWindow(
gsl::not_null<host::WindowHost*> host,