diff options
author | crupest <crupest@outlook.com> | 2021-11-21 15:18:28 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-11-21 15:18:28 +0800 |
commit | eeb1f55d5a483720441c3f44e83d02cc882a3bc0 (patch) | |
tree | e8d8a49d26602ac3f8097aa4d2fff65d70bbfba5 /src/osx/gui/WindowPrivate.h | |
parent | 2b28ec296fdc72050569b9fedc1664ada7791497 (diff) | |
download | cru-eeb1f55d5a483720441c3f44e83d02cc882a3bc0.tar.gz cru-eeb1f55d5a483720441c3f44e83d02cc882a3bc0.tar.bz2 cru-eeb1f55d5a483720441c3f44e83d02cc882a3bc0.zip |
...
Diffstat (limited to 'src/osx/gui/WindowPrivate.h')
-rw-r--r-- | src/osx/gui/WindowPrivate.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/osx/gui/WindowPrivate.h b/src/osx/gui/WindowPrivate.h index d8deaa0c..674ba70f 100644 --- a/src/osx/gui/WindowPrivate.h +++ b/src/osx/gui/WindowPrivate.h @@ -35,12 +35,12 @@ class OsxWindowPrivate { friend OsxInputMethodContextPrivate; public: - explicit OsxWindowPrivate(OsxWindow* osx_window) : osx_window_(osx_window) {} + explicit OsxWindowPrivate(OsxWindow* osx_window); CRU_DELETE_COPY(OsxWindowPrivate) CRU_DELETE_MOVE(OsxWindowPrivate) - ~OsxWindowPrivate() = default; + ~OsxWindowPrivate(); public: void OnMouseEnterLeave(MouseEnterLeaveType type); @@ -80,15 +80,15 @@ class OsxWindowPrivate { private: OsxWindow* osx_window_; - INativeWindow* parent_; - WindowStyleFlag style_flag_; + INativeWindow* parent_ = nullptr; + WindowStyleFlag style_flag_ = WindowStyleFlag{}; Rect content_rect_; NSWindow* window_ = nil; CruWindowDelegate* window_delegate_ = nil; - CGLayerRef draw_layer_; + CGLayerRef draw_layer_ = nullptr; bool mouse_in_ = false; |