]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/cocoa/trackingrectmanager.h
support retina display
[wxWidgets.git] / include / wx / cocoa / trackingrectmanager.h
index 115791260657b2b975d132963062d2e26dee5310..839685812c7c9f67c3fde9a756ee436ea53eb171 100644 (file)
 
 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();
@@ -31,7 +32,8 @@ public:
 protected:
     wxWindow *m_window;
     bool m_isTrackingRectActive;
-    int m_trackingRectTag;
+    NSInteger m_trackingRectTag;
+    NSRect m_trackingRectInWindowCoordinates;
 private:
     wxCocoaTrackingRectManager();
 };