aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/controls/Popup.hpp
blob: d76e1211d00b163976321665838a94d6bcf381ee (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
#pragma once
#include "RootControl.hpp"

#include "cru/ui/Base.hpp"
#include "cru/platform/gui/Base.hpp"

#include <memory>

namespace cru::ui::controls {
class Popup : public RootControl {
 public:
  explicit Popup(Control* attached_control = nullptr);

  CRU_DELETE_COPY(Popup)
  CRU_DELETE_MOVE(Popup)

  ~Popup() override;

 protected:
  gsl::not_null<platform::gui::INativeWindow*> CreateNativeWindow(
      gsl::not_null<host::WindowHost*> host,
      platform::gui::INativeWindow* parent) override;
};
}  // namespace cru::ui::controls