aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/controls/NoChildControl.hpp
blob: 0c4325322d6c021ccadce37b2928618ac040c5f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once
#include "Control.hpp"

namespace cru::ui::controls {
class CRU_UI_API NoChildControl : public Control {
 protected:
  NoChildControl() = default;

 public:
  NoChildControl(const NoChildControl& other) = delete;
  NoChildControl(NoChildControl&& other) = delete;
  NoChildControl& operator=(const NoChildControl& other) = delete;
  NoChildControl& operator=(NoChildControl&& other) = delete;
  ~NoChildControl() override = default;

 private:
  using Control::AddChild;
  using Control::RemoveChild;
};
}  // namespace cru::ui