aboutsummaryrefslogtreecommitdiff
path: root/include
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
parent67dd012c0f49898f1734c46d3bb264f59d056a8e (diff)
downloadcru-729633041f6fbea4ac1ef4128bea1ddc3a7b1d24.tar.gz
cru-729633041f6fbea4ac1ef4128bea1ddc3a7b1d24.tar.bz2
cru-729633041f6fbea4ac1ef4128bea1ddc3a7b1d24.zip
...
Diffstat (limited to 'include')
-rw-r--r--include/cru/ui/events/FocusChangeEventArgs.hpp2
-rw-r--r--include/cru/ui/events/KeyEventArgs.hpp2
-rw-r--r--include/cru/ui/events/MouseButtonEventArgs.hpp2
-rw-r--r--include/cru/ui/events/MouseWheelEventArgs.hpp2
-rw-r--r--include/cru/ui/events/PaintEventArgs.hpp2
-rw-r--r--include/cru/ui/events/RoutedEvent.hpp2
-rw-r--r--include/cru/ui/events/UiEventArgs.hpp2
7 files changed, 7 insertions, 7 deletions
diff --git a/include/cru/ui/events/FocusChangeEventArgs.hpp b/include/cru/ui/events/FocusChangeEventArgs.hpp
index 0e65c6e0..b72790a5 100644
--- a/include/cru/ui/events/FocusChangeEventArgs.hpp
+++ b/include/cru/ui/events/FocusChangeEventArgs.hpp
@@ -3,7 +3,7 @@
namespace cru::ui::events {
-class FocusChangeEventArgs : public UiEventArgs {
+class CRU_UI_API FocusChangeEventArgs : public UiEventArgs {
public:
FocusChangeEventArgs(Object* sender, Object* original_sender,
const bool is_window = false)
diff --git a/include/cru/ui/events/KeyEventArgs.hpp b/include/cru/ui/events/KeyEventArgs.hpp
index e402dd07..133db1df 100644
--- a/include/cru/ui/events/KeyEventArgs.hpp
+++ b/include/cru/ui/events/KeyEventArgs.hpp
@@ -4,7 +4,7 @@
#include "cru/platform/gui/Keyboard.hpp"
namespace cru::ui::events {
-class KeyEventArgs : public UiEventArgs {
+class CRU_UI_API KeyEventArgs : public UiEventArgs {
public:
KeyEventArgs(Object* sender, Object* original_sender,
platform::gui::KeyCode key_code,
diff --git a/include/cru/ui/events/MouseButtonEventArgs.hpp b/include/cru/ui/events/MouseButtonEventArgs.hpp
index 179ce8c8..791ed03b 100644
--- a/include/cru/ui/events/MouseButtonEventArgs.hpp
+++ b/include/cru/ui/events/MouseButtonEventArgs.hpp
@@ -5,7 +5,7 @@
namespace cru::ui::events {
-class MouseButtonEventArgs : public MouseEventArgs {
+class CRU_UI_API MouseButtonEventArgs : public MouseEventArgs {
public:
MouseButtonEventArgs(Object* sender, Object* original_sender,
const Point& point, const MouseButton button,
diff --git a/include/cru/ui/events/MouseWheelEventArgs.hpp b/include/cru/ui/events/MouseWheelEventArgs.hpp
index d0b3a145..c6c0fe10 100644
--- a/include/cru/ui/events/MouseWheelEventArgs.hpp
+++ b/include/cru/ui/events/MouseWheelEventArgs.hpp
@@ -4,7 +4,7 @@
#include "cru/platform/gui/Keyboard.hpp"
namespace cru::ui::events {
-class MouseWheelEventArgs : public MouseEventArgs {
+class CRU_UI_API MouseWheelEventArgs : public MouseEventArgs {
public:
MouseWheelEventArgs(Object* sender, Object* original_sender,
const Point& point, const float delta,
diff --git a/include/cru/ui/events/PaintEventArgs.hpp b/include/cru/ui/events/PaintEventArgs.hpp
index 8bcb1590..f2b53977 100644
--- a/include/cru/ui/events/PaintEventArgs.hpp
+++ b/include/cru/ui/events/PaintEventArgs.hpp
@@ -6,7 +6,7 @@ struct IPainter;
}
namespace cru::ui::events {
-class PaintEventArgs : public UiEventArgs {
+class CRU_UI_API PaintEventArgs : public UiEventArgs {
public:
PaintEventArgs(Object* sender, Object* original_sender,
platform::graphics::IPainter* painter)
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.");
diff --git a/include/cru/ui/events/UiEventArgs.hpp b/include/cru/ui/events/UiEventArgs.hpp
index d1b44940..1e1f9e93 100644
--- a/include/cru/ui/events/UiEventArgs.hpp
+++ b/include/cru/ui/events/UiEventArgs.hpp
@@ -2,7 +2,7 @@
#include "../Base.hpp"
namespace cru::ui::events {
-class UiEventArgs : public Object {
+class CRU_UI_API UiEventArgs : public Object {
public:
UiEventArgs(Object* sender, Object* original_sender)
: sender_(sender), original_sender_(original_sender), handled_(false) {}