From a60910cb3db6f47fd8f3b7f31648a9d0514d4f2c Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 20 Nov 2021 22:43:30 +0800 Subject: ... --- src/osx/gui/WindowPrivate.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/osx/gui/WindowPrivate.h') diff --git a/src/osx/gui/WindowPrivate.h b/src/osx/gui/WindowPrivate.h index 0778195a..88760673 100644 --- a/src/osx/gui/WindowPrivate.h +++ b/src/osx/gui/WindowPrivate.h @@ -53,6 +53,7 @@ class OsxWindowPrivate { void OnWindowWillClose(); void OnWindowDidExpose(); void OnWindowDidUpdate(); + void OnWindowDidMove(); void OnWindowDidResize(); void OnBecomeKeyWindow(); void OnResignKeyWindow(); @@ -63,10 +64,18 @@ class OsxWindowPrivate { NSWindow* GetNSWindow() { return window_; } private: + Size GetScreenSize(); + + void CreateWindow(); + void UpdateCursor(); Point TransformMousePoint(const Point& point); + CGLayerRef CreateLayer(const CGSize& size); + + Rect RetrieveContentRect(); + private: OsxWindow* osx_window_; @@ -88,6 +97,7 @@ class OsxWindowPrivate { TimerAutoCanceler draw_timer_; + Event create_event_; Event destroy_event_; Event paint_event_; Event resize_event_; -- cgit v1.2.3