X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7c5a378ff21de766bab2fd76293be1008610afc2..3b49331b7441e091fc5997b830801d76a1243f28:/include/wx/cocoa/trackingrectmanager.h?ds=sidebyside diff --git a/include/wx/cocoa/trackingrectmanager.h b/include/wx/cocoa/trackingrectmanager.h index 3712b0d87a..40fac51aad 100644 --- a/include/wx/cocoa/trackingrectmanager.h +++ b/include/wx/cocoa/trackingrectmanager.h @@ -14,6 +14,8 @@ #include +#define wxTRACE_COCOA_TrackingRect wxT("COCOA_TrackingRect") + class wxCocoaTrackingRectManager { DECLARE_NO_COPY_CLASS(wxCocoaTrackingRectManager) @@ -21,6 +23,7 @@ public: wxCocoaTrackingRectManager(wxWindow *window); void ClearTrackingRect(); void BuildTrackingRect(); + void RebuildTrackingRectIfNeeded(); void RebuildTrackingRect(); bool IsOwnerOfEvent(NSEvent *anEvent); ~wxCocoaTrackingRectManager(); @@ -30,7 +33,7 @@ protected: wxWindow *m_window; bool m_isTrackingRectActive; int m_trackingRectTag; - CFRunLoopObserverRef m_runLoopObserver; + NSRect m_trackingRectInWindowCoordinates; private: wxCocoaTrackingRectManager(); };