X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7c5a378ff21de766bab2fd76293be1008610afc2..43ff861df48f0837dac98005dd397c5f127ca136:/include/wx/cocoa/trackingrectmanager.h?ds=inline diff --git a/include/wx/cocoa/trackingrectmanager.h b/include/wx/cocoa/trackingrectmanager.h index 3712b0d87a..839685812c 100644 --- a/include/wx/cocoa/trackingrectmanager.h +++ b/include/wx/cocoa/trackingrectmanager.h @@ -14,13 +14,16 @@ #include +#define wxTRACE_COCOA_TrackingRect wxT("COCOA_TrackingRect") + class wxCocoaTrackingRectManager { - DECLARE_NO_COPY_CLASS(wxCocoaTrackingRectManager) + wxDECLARE_NO_COPY_CLASS(wxCocoaTrackingRectManager); 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(); };