aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-02-08 21:45:10 +0800
committercrupest <crupest@outlook.com>2022-02-08 21:45:10 +0800
commitae2a748403f3a4879a759820f7a445e41ee5f9df (patch)
tree20076f0366fcd7b4c60626ac687bb6b06b9399b8 /include
parent5d7dcef619bd1f866684b57351dde2efbda6959c (diff)
downloadcru-ae2a748403f3a4879a759820f7a445e41ee5f9df.tar.gz
cru-ae2a748403f3a4879a759820f7a445e41ee5f9df.tar.bz2
cru-ae2a748403f3a4879a759820f7a445e41ee5f9df.zip
...
Diffstat (limited to 'include')
-rw-r--r--include/cru/ui/components/Component.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/cru/ui/components/Component.h b/include/cru/ui/components/Component.h
index 0b871dc4..e889ae97 100644
--- a/include/cru/ui/components/Component.h
+++ b/include/cru/ui/components/Component.h
@@ -2,9 +2,11 @@
#include "../Base.h"
namespace cru::ui::components {
-// In destructor, component should check all owned controls whether it is
-// attached to window, if not, destroy them, otherwise it is host's duty to
-// destroy them.
+/**
+ * \remarks In destructor, component should first delete all child components
+ * and then remove root control from its parent (by calling
+ * Control::RemoveFromParent). Then delete all its root control.
+ */
class CRU_UI_API Component : public Object {
public:
Component() = default;