X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7c5a378ff21de766bab2fd76293be1008610afc2..cf2918d40e990646a1277ba67a029cafe9e0fec8:/include/wx/cocoa/trackingrectmanager.h diff --git a/include/wx/cocoa/trackingrectmanager.h b/include/wx/cocoa/trackingrectmanager.h index 3712b0d87a..da4483db53 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(); @@ -29,8 +32,8 @@ public: protected: wxWindow *m_window; bool m_isTrackingRectActive; - int m_trackingRectTag; - CFRunLoopObserverRef m_runLoopObserver; + NSInteger m_trackingRectTag; + NSRect m_trackingRectInWindowCoordinates; private: wxCocoaTrackingRectManager(); };