diff options
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; |