diff options
Diffstat (limited to 'include/cru/ui/controls')
-rw-r--r-- | include/cru/ui/controls/Control.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/cru/ui/controls/Control.h b/include/cru/ui/controls/Control.h index 158a1578..8c9f11d3 100644 --- a/include/cru/ui/controls/Control.h +++ b/include/cru/ui/controls/Control.h @@ -1,5 +1,6 @@ #pragma once #include "../Base.h" +#include "../DeleteLater.h" #include "../events/UiEvents.h" #include "../render/RenderObject.h" #include "../style/StyleRuleSet.h" @@ -17,7 +18,9 @@ namespace cru::ui::controls { * - RemoveChild(Control* child) * The last two methods are totally for convenient control tree management. */ -class CRU_UI_API Control : public Object, public SelfResolvable<Control> { +class CRU_UI_API Control : public Object, + public SelfResolvable<Control>, + public DeleteLaterImpl { friend class RootControl; protected: |