blob: 4076e45b790ff76ef83150d6f568e700c674b560 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
  | 
#pragma once
#include "RootControl.hpp"
#include "cru/platform/gui/Base.hpp"
#include <memory>
namespace cru::ui::controls {
class CRU_UI_API 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)
  CRU_DELETE_MOVE(Popup)
  ~Popup() override;
  String GetControlType() const override { return kControlType.ToString(); }
};
}  // namespace cru::ui::controls
 
  |