diff options
| author | Yuqian Yang <crupest@crupest.life> | 2025-11-19 02:59:30 +0800 |
|---|---|---|
| committer | Yuqian Yang <crupest@crupest.life> | 2025-11-19 02:59:30 +0800 |
| commit | 2eb34dfc3dd3ca718da6ebf049886b4ae140b332 (patch) | |
| tree | c43dbca6e6898fd474ca9b976b4bf21b3419e512 /include/cru/ui/controls/ControlHost.h | |
| parent | df2dadbd0f0ace6e02281c84218537ec2ce5c47f (diff) | |
| download | cru-2eb34dfc3dd3ca718da6ebf049886b4ae140b332.tar.gz cru-2eb34dfc3dd3ca718da6ebf049886b4ae140b332.tar.bz2 cru-2eb34dfc3dd3ca718da6ebf049886b4ae140b332.zip | |
Remove all children when control destroyed.
Diffstat (limited to 'include/cru/ui/controls/ControlHost.h')
| -rw-r--r-- | include/cru/ui/controls/ControlHost.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/cru/ui/controls/ControlHost.h b/include/cru/ui/controls/ControlHost.h index c67e8a72..a27be835 100644 --- a/include/cru/ui/controls/ControlHost.h +++ b/include/cru/ui/controls/ControlHost.h @@ -169,7 +169,8 @@ class CRU_UI_API ControlHost : public Object { } void UpdateCursor(); - void NotifyControlParentChange(Control* control, Control* old_parent, Control* new_parent); + void NotifyControlParentChange(Control* control, Control* old_parent, + Control* new_parent); private: int event_handling_count_; @@ -185,7 +186,6 @@ class CRU_UI_API ControlHost : public Object { bool layout_prefer_to_fill_window_; - platform::gui::TimerAutoCanceler repaint_schedule_canceler_; platform::gui::TimerAutoCanceler relayout_schedule_canceler_; }; } // namespace cru::ui::controls |
