diff options
author | crupest <crupest@outlook.com> | 2021-11-20 22:43:30 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-11-20 22:43:30 +0800 |
commit | a60910cb3db6f47fd8f3b7f31648a9d0514d4f2c (patch) | |
tree | 32c01c22e21742ae0c9febb2cbc26339f99eec1d /src/osx/gui/WindowPrivate.h | |
parent | 1a53ed0791d9793ed8030d3a44e833e5e7c4542b (diff) | |
download | cru-a60910cb3db6f47fd8f3b7f31648a9d0514d4f2c.tar.gz cru-a60910cb3db6f47fd8f3b7f31648a9d0514d4f2c.tar.bz2 cru-a60910cb3db6f47fd8f3b7f31648a9d0514d4f2c.zip |
...
Diffstat (limited to 'src/osx/gui/WindowPrivate.h')
-rw-r--r-- | src/osx/gui/WindowPrivate.h | 10 |
1 files changed, 10 insertions, 0 deletions
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<std::nullptr_t> create_event_; Event<std::nullptr_t> destroy_event_; Event<std::nullptr_t> paint_event_; Event<Size> resize_event_; |