#include <CoreFoundation/CFRunLoop.h>
+#define wxTRACE_COCOA_TrackingRect wxT("COCOA_TrackingRect")
+
class wxCocoaTrackingRectManager
{
DECLARE_NO_COPY_CLASS(wxCocoaTrackingRectManager)
wxCocoaTrackingRectManager(wxWindow *window);
void ClearTrackingRect();
void BuildTrackingRect();
+ void RebuildTrackingRectIfNeeded();
void RebuildTrackingRect();
bool IsOwnerOfEvent(NSEvent *anEvent);
~wxCocoaTrackingRectManager();
wxWindow *m_window;
bool m_isTrackingRectActive;
int m_trackingRectTag;
- CFRunLoopObserverRef m_runLoopObserver;
+ NSRect m_trackingRectInWindowCoordinates;
private:
wxCocoaTrackingRectManager();
};