diff options
author | crupest <crupest@outlook.com> | 2022-03-13 17:11:08 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-03-13 17:11:08 +0800 |
commit | 1d14ce416bb4e5651b956790b621308acf73b64c (patch) | |
tree | c7ef7d9af3afcb93d6c9168bef698b6794884877 /include | |
parent | 8d24d87036e0208af24cf66bd31333445a4f813e (diff) | |
download | cru-1d14ce416bb4e5651b956790b621308acf73b64c.tar.gz cru-1d14ce416bb4e5651b956790b621308acf73b64c.tar.bz2 cru-1d14ce416bb4e5651b956790b621308acf73b64c.zip |
...
Diffstat (limited to 'include')
-rw-r--r-- | include/cru/ui/components/Component.h | 3 | ||||
-rw-r--r-- | include/cru/ui/host/WindowHost.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/include/cru/ui/components/Component.h b/include/cru/ui/components/Component.h index 64c3ef47..34add594 100644 --- a/include/cru/ui/components/Component.h +++ b/include/cru/ui/components/Component.h @@ -1,5 +1,6 @@ #pragma once #include "../Base.h" +#include "cru/common/SelfResolvable.h" namespace cru::ui::components { /** @@ -7,7 +8,7 @@ namespace cru::ui::components { * \remarks Component should respect children's Component::IsDeleteByParent * value and decide whether to delete it. */ -class CRU_UI_API Component : public Object { +class CRU_UI_API Component : public Object, public SelfResolvable<Component> { public: Component() = default; diff --git a/include/cru/ui/host/WindowHost.h b/include/cru/ui/host/WindowHost.h index b1d0c998..d88482c4 100644 --- a/include/cru/ui/host/WindowHost.h +++ b/include/cru/ui/host/WindowHost.h @@ -17,7 +17,7 @@ class LayoutPaintCycler; struct AfterLayoutEventArgs {}; // The bridge between control tree and native window. -class CRU_UI_API WindowHost : public Object { +class CRU_UI_API WindowHost : public Object, public SelfResolvable<WindowHost> { friend controls::Control; CRU_DEFINE_CLASS_LOG_TAG(u"WindowHost") |