From ce56ab59a6d68c220fcc47c6977c618eaa43de7a Mon Sep 17 00:00:00 2001 From: crupest Date: Sun, 5 Jul 2020 18:13:10 +0800 Subject: ... --- include/cru/ui/UiEvent.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/cru/ui/UiEvent.hpp') 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 must not be reference."); - using EventArgs = TEventArgs; + using RawEventArgs = TEventArgs; + using IEventType = IEvent; + using EventArgs = typename IEventType::EventArgs; RoutedEvent() = default; RoutedEvent(const RoutedEvent& other) = delete; -- cgit v1.2.3