From ddc6d6478f849ef10b832bc8b1d8ab7fe9454601 Mon Sep 17 00:00:00 2001 From: crupest Date: Mon, 9 Nov 2020 18:28:33 +0800 Subject: ... --- include/cru/ui/controls/Window.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/cru/ui/controls') diff --git a/include/cru/ui/controls/Window.hpp b/include/cru/ui/controls/Window.hpp index 616e2ee7..996bc75e 100644 --- a/include/cru/ui/controls/Window.hpp +++ b/include/cru/ui/controls/Window.hpp @@ -24,13 +24,13 @@ class Window final : public LayoutControl { render::RenderObject* GetRenderObject() const override; - protected: - void OnAddChild(Control* child, Index position) override; - void OnRemoveChild(Control* child, Index position) override; + // If create is false and native window is not create, it will not be created + // and shown. + void Show(bool create = true); private: std::unique_ptr window_host_; std::unique_ptr render_object_; }; -} // namespace cru::ui +} // namespace cru::ui::controls -- cgit v1.2.3