diff options
author | crupest <crupest@outlook.com> | 2022-03-29 12:24:06 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-03-29 12:24:06 +0800 |
commit | 7a564d98db0b7c7be5b3bfac955cb88998a472ac (patch) | |
tree | 891abaf06a4e011a798c8daf5f063230ec67f995 /include/cru/ui/controls/Control.h | |
parent | 91695b78f565239223fc6f3a10b0219b8dc1b6f8 (diff) | |
download | cru-7a564d98db0b7c7be5b3bfac955cb88998a472ac.tar.gz cru-7a564d98db0b7c7be5b3bfac955cb88998a472ac.tar.bz2 cru-7a564d98db0b7c7be5b3bfac955cb88998a472ac.zip |
...
Diffstat (limited to 'include/cru/ui/controls/Control.h')
-rw-r--r-- | include/cru/ui/controls/Control.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/cru/ui/controls/Control.h b/include/cru/ui/controls/Control.h index 8c9f11d3..38a9a86b 100644 --- a/include/cru/ui/controls/Control.h +++ b/include/cru/ui/controls/Control.h @@ -23,6 +23,8 @@ class CRU_UI_API Control : public Object, public DeleteLaterImpl { friend class RootControl; + CRU_DEFINE_CLASS_LOG_TAG(u"Control") + protected: Control(); @@ -174,6 +176,8 @@ class CRU_UI_API Control : public Object, protected: virtual void OnMouseHoverChange(bool newHover) { CRU_UNUSED(newHover) } + void OnPrepareDelete() override; + private: void OnParentChangedCore(Control* old_parent, Control* new_parent); void OnWindowHostChangedCore(host::WindowHost* old_host, |