diff options
author | crupest <crupest@outlook.com> | 2020-11-10 15:03:54 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-11-10 15:03:54 +0800 |
commit | 460a45df8be4613053c6a097d9c699c70dbe1a2c (patch) | |
tree | dbd4141b27eb0cea9481fcd735a247e64b335f33 /include/cru/ui/controls/ContentControl.hpp | |
parent | 141fbebbe604eac53d12e7de11f999044e286cb6 (diff) | |
download | cru-460a45df8be4613053c6a097d9c699c70dbe1a2c.tar.gz cru-460a45df8be4613053c6a097d9c699c70dbe1a2c.tar.bz2 cru-460a45df8be4613053c6a097d9c699c70dbe1a2c.zip |
...
Diffstat (limited to 'include/cru/ui/controls/ContentControl.hpp')
-rw-r--r-- | include/cru/ui/controls/ContentControl.hpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/cru/ui/controls/ContentControl.hpp b/include/cru/ui/controls/ContentControl.hpp index 47720a87..1bdaf7e4 100644 --- a/include/cru/ui/controls/ContentControl.hpp +++ b/include/cru/ui/controls/ContentControl.hpp @@ -1,6 +1,8 @@ #pragma once #include "Control.hpp" +#include "cru/ui/render/RenderObject.hpp" + namespace cru::ui::controls { class ContentControl : public Control { protected: @@ -19,8 +21,18 @@ class ContentControl : public Control { protected: virtual void OnChildChanged(Control* old_child, Control* new_child); + render::RenderObject* GetContainerRenderObject() const { + return container_render_object_; + } + void SetContainerRenderObject(render::RenderObject* ro) { + container_render_object_ = ro; + } + private: using Control::AddChild; using Control::RemoveChild; + + private: + render::RenderObject* container_render_object_ = nullptr; }; } // namespace cru::ui::controls |