aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/controls/Control.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/ui/controls/Control.h')
-rw-r--r--include/cru/ui/controls/Control.h4
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,