aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/events/RoutedEvent.hpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-01-17 23:12:29 +0800
committercrupest <crupest@outlook.com>2022-01-17 23:12:29 +0800
commit729633041f6fbea4ac1ef4128bea1ddc3a7b1d24 (patch)
tree123f1c8ea929441d75c09f94c08c82c0e8ab2461 /include/cru/ui/events/RoutedEvent.hpp
parent67dd012c0f49898f1734c46d3bb264f59d056a8e (diff)
downloadcru-729633041f6fbea4ac1ef4128bea1ddc3a7b1d24.tar.gz
cru-729633041f6fbea4ac1ef4128bea1ddc3a7b1d24.tar.bz2
cru-729633041f6fbea4ac1ef4128bea1ddc3a7b1d24.zip
...
Diffstat (limited to 'include/cru/ui/events/RoutedEvent.hpp')
-rw-r--r--include/cru/ui/events/RoutedEvent.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/cru/ui/events/RoutedEvent.hpp b/include/cru/ui/events/RoutedEvent.hpp
index 0cedc671..dd0bc21f 100644
--- a/include/cru/ui/events/RoutedEvent.hpp
+++ b/include/cru/ui/events/RoutedEvent.hpp
@@ -7,7 +7,7 @@ namespace cru::ui::events {
// TEventArgs must not be a reference type. This class help add reference.
// EventArgs must be reference because the IsHandled property must be settable.
template <typename TEventArgs>
-class RoutedEvent {
+class CRU_UI_API RoutedEvent {
public:
static_assert(std::is_base_of_v<UiEventArgs, TEventArgs>,
"TEventArgs must be subclass of UiEventArgs.");