aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/controls/Popup.hpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-11-09 20:06:04 +0800
committercrupest <crupest@outlook.com>2020-11-09 20:06:04 +0800
commit68fc33443981fcd499dfe263c228787e213ae943 (patch)
tree6a11d424a958d9c566e4c0b85b32212bfad9a1dc /include/cru/ui/controls/Popup.hpp
parentddc6d6478f849ef10b832bc8b1d8ab7fe9454601 (diff)
downloadcru-68fc33443981fcd499dfe263c228787e213ae943.tar.gz
cru-68fc33443981fcd499dfe263c228787e213ae943.tar.bz2
cru-68fc33443981fcd499dfe263c228787e213ae943.zip
...
Diffstat (limited to 'include/cru/ui/controls/Popup.hpp')
-rw-r--r--include/cru/ui/controls/Popup.hpp17
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