aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/controls/NoChildControl.h
blob: 6d2168cbea15e9e5bcfa3e10f951d620b871daf9 (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.h"

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