diff options
Diffstat (limited to 'CruUI/ui/controls/linear_layout.h')
-rw-r--r-- | CruUI/ui/controls/linear_layout.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/CruUI/ui/controls/linear_layout.h b/CruUI/ui/controls/linear_layout.h index 74c504cb..ead56081 100644 --- a/CruUI/ui/controls/linear_layout.h +++ b/CruUI/ui/controls/linear_layout.h @@ -18,9 +18,16 @@ namespace cru::ui::controls return new LinearLayout(orientation); } - private: + protected: explicit LinearLayout(Orientation orientation = Orientation::Vertical); + public: + LinearLayout(const LinearLayout& other) = delete; + LinearLayout(LinearLayout&& other) = delete; + LinearLayout& operator=(const LinearLayout& other) = delete; + LinearLayout& operator=(LinearLayout&& other) = delete; + ~LinearLayout() override = default; + protected: Size OnMeasure(const Size& available_size) override; void OnLayout(const Rect& rect) override; |