X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7c5a378ff21de766bab2fd76293be1008610afc2..9feb6482069c6cdc91086c435002c38ef11e92d2:/include/wx/cocoa/trackingrectmanager.h 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(); };