aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/controls/Popup.hpp
blob: f17cd1b294c58f8f6eba175dd4f9db390b09b670 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once
#include "LayoutControl.hpp"

#include <memory>

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

  CRU_DELETE_COPY(Popup)
  CRU_DELETE_MOVE(Popup)

  ~Popup() override;

 private:
  std::unique_ptr<host::WindowHost> window_host_;

  std::unique_ptr<render::StackLayoutRenderObject> render_object_;

  Control* attached_control_;
};
}  // namespace cru::ui::controls