]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/cocoa/trackingrectmanager.h
don't redeclare vsscanf() for Windows compilers, the case of missing declaration...
[wxWidgets.git] / include / wx / cocoa / trackingrectmanager.h
index 3712b0d87a46e0323bed50494f87ba9e2b191fd9..da4483db532fca5de37d1962c04c2ec94280cd06 100644 (file)
@@ -14,6 +14,8 @@
 
 #include <CoreFoundation/CFRunLoop.h>
 
+#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();
 };