diff options
author | crupest <crupest@outlook.com> | 2019-03-31 19:48:20 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-03-31 19:48:20 +0800 |
commit | 8ca0873597eb05a2f120d3ea107660abcff4533c (patch) | |
tree | f2089ad1a420ae0f21ba0d84b5031de3b5e489ca /src/ui/events | |
parent | 9cc0f5d9192288116443254d790aa9ab36572b8d (diff) | |
download | cru-8ca0873597eb05a2f120d3ea107660abcff4533c.tar.gz cru-8ca0873597eb05a2f120d3ea107660abcff4533c.tar.bz2 cru-8ca0873597eb05a2f120d3ea107660abcff4533c.zip |
...
Diffstat (limited to 'src/ui/events')
-rw-r--r-- | src/ui/events/window_event.hpp | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/src/ui/events/window_event.hpp b/src/ui/events/window_event.hpp deleted file mode 100644 index 21c644af..00000000 --- a/src/ui/events/window_event.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#pragma once -#include "pre.hpp" - -#include <Windows.h> - -#include "ui_event.hpp" - -namespace cru::ui::events { -struct WindowNativeMessage { - HWND hwnd; - int msg; - WPARAM w_param; - LPARAM l_param; -}; - -class WindowNativeMessageEventArgs : public UiEventArgs { - public: - WindowNativeMessageEventArgs(Object* sender, Object* original_sender, - const WindowNativeMessage& message) - : UiEventArgs(sender, original_sender), - message_(message), - result_(std::nullopt) {} - WindowNativeMessageEventArgs(const WindowNativeMessageEventArgs& other) = - default; - WindowNativeMessageEventArgs(WindowNativeMessageEventArgs&& other) = default; - WindowNativeMessageEventArgs& operator=( - const WindowNativeMessageEventArgs& other) = default; - WindowNativeMessageEventArgs& operator=( - WindowNativeMessageEventArgs&& other) = default; - ~WindowNativeMessageEventArgs() override = default; - - WindowNativeMessage GetWindowMessage() const { return message_; } - - std::optional<LRESULT> GetResult() const { return result_; } - - void SetResult(const std::optional<LRESULT> result) { result_ = result; } - - private: - WindowNativeMessage message_; - std::optional<LRESULT> result_; -}; -} |