diff options
Diffstat (limited to 'include/cru/ui/controls/Popup.hpp')
-rw-r--r-- | include/cru/ui/controls/Popup.hpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/include/cru/ui/controls/Popup.hpp b/include/cru/ui/controls/Popup.hpp index f17cd1b2..d76e1211 100644 --- a/include/cru/ui/controls/Popup.hpp +++ b/include/cru/ui/controls/Popup.hpp @@ -1,10 +1,13 @@ #pragma once -#include "LayoutControl.hpp" +#include "RootControl.hpp" + +#include "cru/ui/Base.hpp" +#include "cru/platform/gui/Base.hpp" #include <memory> namespace cru::ui::controls { -class Popup : public LayoutControl { +class Popup : public RootControl { public: explicit Popup(Control* attached_control = nullptr); @@ -13,11 +16,9 @@ class Popup : public LayoutControl { ~Popup() override; - private: - std::unique_ptr<host::WindowHost> window_host_; - - std::unique_ptr<render::StackLayoutRenderObject> render_object_; - - Control* attached_control_; + protected: + gsl::not_null<platform::gui::INativeWindow*> CreateNativeWindow( + gsl::not_null<host::WindowHost*> host, + platform::gui::INativeWindow* parent) override; }; } // namespace cru::ui::controls |