]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/cocoa/trackingrectmanager.h
fix warnings in EventsSuppressor ctor from gcc with -O option
[wxWidgets.git] / include / wx / cocoa / trackingrectmanager.h
index 3712b0d87a46e0323bed50494f87ba9e2b191fd9..40fac51aad10b09bdea3af9fb47bb0c3e17169e7 100644 (file)
@@ -14,6 +14,8 @@
 
 #include <CoreFoundation/CFRunLoop.h>
 
 
 #include <CoreFoundation/CFRunLoop.h>
 
+#define wxTRACE_COCOA_TrackingRect wxT("COCOA_TrackingRect")
+
 class wxCocoaTrackingRectManager
 {
     DECLARE_NO_COPY_CLASS(wxCocoaTrackingRectManager)
 class wxCocoaTrackingRectManager
 {
     DECLARE_NO_COPY_CLASS(wxCocoaTrackingRectManager)
@@ -21,6 +23,7 @@ public:
     wxCocoaTrackingRectManager(wxWindow *window);
     void ClearTrackingRect();
     void BuildTrackingRect();
     wxCocoaTrackingRectManager(wxWindow *window);
     void ClearTrackingRect();
     void BuildTrackingRect();
+    void RebuildTrackingRectIfNeeded();
     void RebuildTrackingRect();
     bool IsOwnerOfEvent(NSEvent *anEvent);
     ~wxCocoaTrackingRectManager();
     void RebuildTrackingRect();
     bool IsOwnerOfEvent(NSEvent *anEvent);
     ~wxCocoaTrackingRectManager();
@@ -30,7 +33,7 @@ protected:
     wxWindow *m_window;
     bool m_isTrackingRectActive;
     int m_trackingRectTag;
     wxWindow *m_window;
     bool m_isTrackingRectActive;
     int m_trackingRectTag;
-    CFRunLoopObserverRef m_runLoopObserver;
+    NSRect m_trackingRectInWindowCoordinates;
 private:
     wxCocoaTrackingRectManager();
 };
 private:
     wxCocoaTrackingRectManager();
 };