diff options
| author | Yuqian Yang <crupest@crupest.life> | 2025-11-06 17:27:10 +0800 |
|---|---|---|
| committer | Yuqian Yang <crupest@crupest.life> | 2025-11-06 17:27:10 +0800 |
| commit | 6315e654ce0be2d2cc148e9ff80f611ac1176348 (patch) | |
| tree | 8232fedd7bbe87d635563e743e22781e20f83376 /src/platform/gui/sdl/Window.cpp | |
| parent | 38b1268028d4d631de15ca85826c241e39c82675 (diff) | |
| download | cru-6315e654ce0be2d2cc148e9ff80f611ac1176348.tar.gz cru-6315e654ce0be2d2cc148e9ff80f611ac1176348.tar.bz2 cru-6315e654ce0be2d2cc148e9ff80f611ac1176348.zip | |
Refactor Event.
Diffstat (limited to 'src/platform/gui/sdl/Window.cpp')
| -rw-r--r-- | src/platform/gui/sdl/Window.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/platform/gui/sdl/Window.cpp b/src/platform/gui/sdl/Window.cpp index 1c2d53bc..e0898cb1 100644 --- a/src/platform/gui/sdl/Window.cpp +++ b/src/platform/gui/sdl/Window.cpp @@ -132,7 +132,7 @@ IEvent<WindowVisibilityType> *SdlWindow::VisibilityChangeEvent() { return &visibility_change_event_; } -IEvent<Size> *SdlWindow::ResizeEvent() { return &resize_event_; } +IEvent<const Size&> *SdlWindow::ResizeEvent() { return &resize_event_; } IEvent<FocusChangeType> *SdlWindow::FocusEvent() { return &focus_event_; } @@ -140,25 +140,25 @@ IEvent<MouseEnterLeaveType> *SdlWindow::MouseEnterLeaveEvent() { return &mouse_enter_leave_event_; } -IEvent<Point> *SdlWindow::MouseMoveEvent() { return &mouse_move_event_; } +IEvent<const Point&> *SdlWindow::MouseMoveEvent() { return &mouse_move_event_; } -IEvent<NativeMouseButtonEventArgs> *SdlWindow::MouseDownEvent() { +IEvent<const NativeMouseButtonEventArgs&> *SdlWindow::MouseDownEvent() { return &mouse_down_event_; } -IEvent<NativeMouseButtonEventArgs> *SdlWindow::MouseUpEvent() { +IEvent<const NativeMouseButtonEventArgs&> *SdlWindow::MouseUpEvent() { return &mouse_up_event_; } -IEvent<NativeMouseWheelEventArgs> *SdlWindow::MouseWheelEvent() { +IEvent<const NativeMouseWheelEventArgs&> *SdlWindow::MouseWheelEvent() { return &mouse_wheel_event_; } -IEvent<NativeKeyEventArgs> *SdlWindow::KeyDownEvent() { +IEvent<const NativeKeyEventArgs&> *SdlWindow::KeyDownEvent() { return &key_down_event_; } -IEvent<NativeKeyEventArgs> *SdlWindow::KeyUpEvent() { return &key_up_event_; } +IEvent<const NativeKeyEventArgs&> *SdlWindow::KeyUpEvent() { return &key_up_event_; } IInputMethodContext *SdlWindow::GetInputMethodContext() { NotImplemented(); } |
