aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/NoChildControl.hpp
blob: 0d8a8e344017dec9b30ab9485371c36d6330c5bf (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 {
class 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