diff options
Diffstat (limited to 'CruUI/ui/control.h')
-rw-r--r-- | CruUI/ui/control.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/CruUI/ui/control.h b/CruUI/ui/control.h index 41401008..0c19f305 100644 --- a/CruUI/ui/control.h +++ b/CruUI/ui/control.h @@ -29,7 +29,10 @@ namespace cru friend class Window; friend class WindowLayoutManager; protected: + struct WindowConstructorTag {}; + explicit Control(bool container = false); + Control(WindowConstructorTag, Window* window); public: Control(const Control& other) = delete; @@ -251,8 +254,10 @@ namespace cru private: bool is_container_; - Window * window_; + protected: + Window * window_; // protected for Window class to write it as itself in constructor. + private: Control * parent_; Vector<Control*> children_; |