aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/controls/Container.hpp
blob: 304d402c95369e24b91bca525fe973b887f9a27f (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
27
28
#pragma once
#include "../ContentControl.hpp"

namespace cru::ui::controls {
class Container : public ContentControl {
  static constexpr std::u16string_view control_type = u"Container";

 protected:
  Container();

 public:
  CRU_DELETE_COPY(Container)
  CRU_DELETE_MOVE(Container)

  ~Container() override;

 public:
  std::u16string_view GetControlType() const final { return control_type; }

  render::RenderObject* GetRenderObject() const override;

 protected:
  void OnChildChanged(Control* old_child, Control* new_child) override;

 private:
  std::unique_ptr<render::BorderRenderObject> render_object_;
};
}  // namespace cru::ui::controls