diff options
| author | crupest <crupest@outlook.com> | 2020-04-20 01:17:28 +0800 |
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2020-04-20 01:17:28 +0800 |
| commit | 857adcb7ee2d45b2e29d4250fa4246bb8861a8f9 (patch) | |
| tree | 2ebe62c58768ded27c5c6b15d1ab04400c9ecf9b /include/cru/win/native/window.hpp | |
| parent | 494d2db1c1203acc9d9f2b127b75c6df6160057a (diff) | |
| download | cru-857adcb7ee2d45b2e29d4250fa4246bb8861a8f9.tar.gz cru-857adcb7ee2d45b2e29d4250fa4246bb8861a8f9.tar.bz2 cru-857adcb7ee2d45b2e29d4250fa4246bb8861a8f9.zip | |
...
Diffstat (limited to 'include/cru/win/native/window.hpp')
| -rw-r--r-- | include/cru/win/native/window.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/cru/win/native/window.hpp b/include/cru/win/native/window.hpp index 45f1f16a..83497fa6 100644 --- a/include/cru/win/native/window.hpp +++ b/include/cru/win/native/window.hpp @@ -72,7 +72,7 @@ class WinNativeWindow : public WinNativeResource, public virtual INativeWindow { IEvent<platform::native::NativeKeyEventArgs>* KeyUpEvent() override { return &key_up_event_; } - IEvent<std::string>* CharEvent() override { return &char_event_; }; + IEvent<std::string_view>* CharEvent() override { return &char_event_; }; IEvent<WindowNativeMessageEventArgs&>* NativeMessageEvent() { return &native_message_event_; @@ -146,7 +146,7 @@ class WinNativeWindow : public WinNativeResource, public virtual INativeWindow { Event<platform::native::NativeMouseButtonEventArgs> mouse_up_event_; Event<platform::native::NativeKeyEventArgs> key_down_event_; Event<platform::native::NativeKeyEventArgs> key_up_event_; - Event<std::string> char_event_; + Event<std::string_view> char_event_; Event<WindowNativeMessageEventArgs&> native_message_event_; |
