diff options
author | crupest <crupest@outlook.com> | 2020-07-05 18:13:10 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-07-05 18:13:10 +0800 |
commit | ce56ab59a6d68c220fcc47c6977c618eaa43de7a (patch) | |
tree | d6775d0ffa6f4fde00e69ed82192bc6c5b25d45b /include/cru/ui/UiEvent.hpp | |
parent | e10ef322e5f6268aec5d7717a82fceb42607a000 (diff) | |
download | cru-ce56ab59a6d68c220fcc47c6977c618eaa43de7a.tar.gz cru-ce56ab59a6d68c220fcc47c6977c618eaa43de7a.tar.bz2 cru-ce56ab59a6d68c220fcc47c6977c618eaa43de7a.zip |
...
Diffstat (limited to 'include/cru/ui/UiEvent.hpp')
-rw-r--r-- | include/cru/ui/UiEvent.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/cru/ui/UiEvent.hpp b/include/cru/ui/UiEvent.hpp index 29292d75..79d0f7e3 100644 --- a/include/cru/ui/UiEvent.hpp +++ b/include/cru/ui/UiEvent.hpp @@ -52,7 +52,9 @@ class RoutedEvent { static_assert(!std::is_reference_v<TEventArgs>, "TEventArgs must not be reference."); - using EventArgs = TEventArgs; + using RawEventArgs = TEventArgs; + using IEventType = IEvent<TEventArgs&>; + using EventArgs = typename IEventType::EventArgs; RoutedEvent() = default; RoutedEvent(const RoutedEvent& other) = delete; |