aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/controls
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-03-11 22:38:41 +0800
committercrupest <crupest@outlook.com>2022-03-11 22:38:41 +0800
commitc6d05af374ef11cec4a550eb63c73abdb2cd5f72 (patch)
treeb6161cbd8de2498f2d3870d490eec014990101cf /include/cru/ui/controls
parent3d74364e78fadbc0b36081097e4a3a22a8ee26f2 (diff)
downloadcru-c6d05af374ef11cec4a550eb63c73abdb2cd5f72.tar.gz
cru-c6d05af374ef11cec4a550eb63c73abdb2cd5f72.tar.bz2
cru-c6d05af374ef11cec4a550eb63c73abdb2cd5f72.zip
...
Diffstat (limited to 'include/cru/ui/controls')
-rw-r--r--include/cru/ui/controls/Control.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/cru/ui/controls/Control.h b/include/cru/ui/controls/Control.h
index 3b58222c..158a1578 100644
--- a/include/cru/ui/controls/Control.h
+++ b/include/cru/ui/controls/Control.h
@@ -3,6 +3,7 @@
#include "../events/UiEvents.h"
#include "../render/RenderObject.h"
#include "../style/StyleRuleSet.h"
+#include "cru/common/SelfResolvable.h"
#include "cru/ui/render/MeasureRequirement.h"
namespace cru::ui::controls {
@@ -16,7 +17,7 @@ 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 {
+class CRU_UI_API Control : public Object, public SelfResolvable<Control> {
friend class RootControl;
protected: