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/osx/Window.mm | |
| parent | 38b1268028d4d631de15ca85826c241e39c82675 (diff) | |
| download | cru-6315e654ce0be2d2cc148e9ff80f611ac1176348.tar.gz cru-6315e654ce0be2d2cc148e9ff80f611ac1176348.tar.bz2 cru-6315e654ce0be2d2cc148e9ff80f611ac1176348.zip | |
Refactor Event.
Diffstat (limited to 'src/platform/gui/osx/Window.mm')
| -rw-r--r-- | src/platform/gui/osx/Window.mm | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/platform/gui/osx/Window.mm b/src/platform/gui/osx/Window.mm index 600f4902..5f655185 100644 --- a/src/platform/gui/osx/Window.mm +++ b/src/platform/gui/osx/Window.mm @@ -379,17 +379,17 @@ IEvent<std::nullptr_t>* OsxWindow::PaintEvent() { return &p_->paint_event_; } IEvent<WindowVisibilityType>* OsxWindow::VisibilityChangeEvent() { return &p_->visibility_change_event_; } -IEvent<Size>* OsxWindow::ResizeEvent() { return &p_->resize_event_; } +IEvent<const Size&>* OsxWindow::ResizeEvent() { return &p_->resize_event_; } IEvent<FocusChangeType>* OsxWindow::FocusEvent() { return &p_->focus_event_; } IEvent<MouseEnterLeaveType>* OsxWindow::MouseEnterLeaveEvent() { return &p_->mouse_enter_leave_event_; } -IEvent<Point>* OsxWindow::MouseMoveEvent() { return &p_->mouse_move_event_; } -IEvent<NativeMouseButtonEventArgs>* OsxWindow::MouseDownEvent() { return &p_->mouse_down_event_; } -IEvent<NativeMouseButtonEventArgs>* OsxWindow::MouseUpEvent() { return &p_->mouse_up_event_; } -IEvent<NativeMouseWheelEventArgs>* OsxWindow::MouseWheelEvent() { return &p_->mouse_wheel_event_; } -IEvent<NativeKeyEventArgs>* OsxWindow::KeyDownEvent() { return &p_->key_down_event_; } -IEvent<NativeKeyEventArgs>* OsxWindow::KeyUpEvent() { return &p_->key_up_event_; } +IEvent<const Point&>* OsxWindow::MouseMoveEvent() { return &p_->mouse_move_event_; } +IEvent<const NativeMouseButtonEventArgs&>* OsxWindow::MouseDownEvent() { return &p_->mouse_down_event_; } +IEvent<const NativeMouseButtonEventArgs&>* OsxWindow::MouseUpEvent() { return &p_->mouse_up_event_; } +IEvent<const NativeMouseWheelEventArgs&>* OsxWindow::MouseWheelEvent() { return &p_->mouse_wheel_event_; } +IEvent<const NativeKeyEventArgs&>* OsxWindow::KeyDownEvent() { return &p_->key_down_event_; } +IEvent<const NativeKeyEventArgs&>* OsxWindow::KeyUpEvent() { return &p_->key_up_event_; } IInputMethodContext* OsxWindow::GetInputMethodContext() { return p_->input_method_context_.get(); } } // namespace cru::platform::gui::osx |
