diff options
| author | Yuqian Yang <crupest@crupest.life> | 2025-12-06 20:06:10 +0800 |
|---|---|---|
| committer | Yuqian Yang <crupest@crupest.life> | 2025-12-07 19:52:05 +0800 |
| commit | 4a30bf58a48ed6f31f4c53473e8de70a8cd819da (patch) | |
| tree | 32aab619013cbe2d0557a212832ba24833d2cc36 /include/cru/ui/controls/Control.h | |
| parent | 9a87e5cf786f3e8fddc933136d210edd4ef72c89 (diff) | |
| download | cru-4a30bf58a48ed6f31f4c53473e8de70a8cd819da.tar.gz cru-4a30bf58a48ed6f31f4c53473e8de70a8cd819da.tar.bz2 cru-4a30bf58a48ed6f31f4c53473e8de70a8cd819da.zip | |
Fix SDL popup window.
Diffstat (limited to 'include/cru/ui/controls/Control.h')
| -rw-r--r-- | include/cru/ui/controls/Control.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/cru/ui/controls/Control.h b/include/cru/ui/controls/Control.h index 8cd7a375..aa1cef8a 100644 --- a/include/cru/ui/controls/Control.h +++ b/include/cru/ui/controls/Control.h @@ -12,6 +12,11 @@ namespace cru::ui::controls { +struct ControlHostChangeEventArgs { + ControlHost* old_host; + ControlHost* new_host; +}; + /** * \remarks If you want to write a new control. You should override following * methods: @@ -143,6 +148,8 @@ class CRU_UI_API Control : public Object, CRU_DEFINE_ROUTED_EVENT(GainFocus, events::FocusChangeEventArgs) CRU_DEFINE_ROUTED_EVENT(LoseFocus, events::FocusChangeEventArgs) + CRU_DEFINE_EVENT(ControlHostChange, const ControlHostChangeEventArgs&) + //*************** region: tree *************** protected: virtual void OnParentChanged(Control* old_parent, Control* new_parent); |
