From 4d650160a388b0192e04c454ba1a3de21b0d4cc3 Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 4 Apr 2019 17:52:15 +0800 Subject: ... --- include/cru/ui/window.hpp | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) (limited to 'include/cru/ui') diff --git a/include/cru/ui/window.hpp b/include/cru/ui/window.hpp index 043aae35..f0c790be 100644 --- a/include/cru/ui/window.hpp +++ b/include/cru/ui/window.hpp @@ -60,23 +60,18 @@ class Window final : public ContentControl { void OnNativeDestroy(); void OnNativePaint(); - void OnNativeResize(float new_width, float new_height); + void OnNativeResize(const Size& size); - void OnSetFocusInternal(); - void OnKillFocusInternal(); + void OnNativeFocus(bool focus); - void OnMouseMoveInternal(POINT point); - void OnMouseLeaveInternal(); - void OnMouseDownInternal(MouseButton button, POINT point); - void OnMouseUpInternal(MouseButton button, POINT point); + void OnNativeMouseMove(const Point& point); + void OnNativeMouseLeave(); + void OnNativeMouseDown(platform::MouseButton button, const Point& point); + void OnNativeMouseUp(platform::MouseButton button, const Point& point); - void OnMouseWheelInternal(short delta, POINT point); - void OnKeyDownInternal(int virtual_code); - void OnKeyUpInternal(int virtual_code); - void OnCharInternal(wchar_t c); + void OnNativeKeyDown(int virtual_code); + void OnNativeKeyUp(int virtual_code); - void OnActivatedInternal(); - void OnDeactivatedInternal(); //*************** region: event dispatcher helper *************** @@ -86,7 +81,7 @@ class Window final : public ContentControl { private: platform::NativeWindow* native_window_; - std::vector revoke_tokens_; + std::vector event_revokers_; std::shared_ptr render_object_; -- cgit v1.2.3