aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/controls
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-11-20 21:25:29 +0800
committercrupest <crupest@outlook.com>2021-11-20 21:25:29 +0800
commit1a53ed0791d9793ed8030d3a44e833e5e7c4542b (patch)
tree28aedaabee675b192e414489122349ad4985a31b /include/cru/ui/controls
parenta9da4c10459e3c45115c8a42e771b00cb1caeab7 (diff)
downloadcru-1a53ed0791d9793ed8030d3a44e833e5e7c4542b.tar.gz
cru-1a53ed0791d9793ed8030d3a44e833e5e7c4542b.tar.bz2
cru-1a53ed0791d9793ed8030d3a44e833e5e7c4542b.zip
...
Diffstat (limited to 'include/cru/ui/controls')
-rw-r--r--include/cru/ui/controls/Popup.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/cru/ui/controls/Popup.hpp b/include/cru/ui/controls/Popup.hpp
index 321bbbc6..cd5e1813 100644
--- a/include/cru/ui/controls/Popup.hpp
+++ b/include/cru/ui/controls/Popup.hpp
@@ -8,6 +8,12 @@
namespace cru::ui::controls {
class Popup : public RootControl {
public:
+ static constexpr StringView kControlType = u"Popup";
+
+ static Popup* Create(Control* attached_control = nullptr) {
+ return new Popup(attached_control);
+ }
+
explicit Popup(Control* attached_control = nullptr);
CRU_DELETE_COPY(Popup)
@@ -15,6 +21,8 @@ class Popup : public RootControl {
~Popup() override;
+ String GetControlType() const override { return kControlType.ToString(); }
+
protected:
gsl::not_null<platform::gui::INativeWindow*> CreateNativeWindow(
gsl::not_null<host::WindowHost*> host,