aboutsummaryrefslogtreecommitdiff
path: root/src/osx/gui/WindowPrivate.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/osx/gui/WindowPrivate.h')
-rw-r--r--src/osx/gui/WindowPrivate.h10
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_;