]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/window.h
adding magnification API into the wxWindow classes for best retina support
[wxWidgets.git] / include / wx / window.h
index a5cc6c4fa579de17e8e6f21375df8a1d346fa90a..8376fb773152dbf24470ccbddad5de7a45c241d7 100644 (file)
@@ -521,6 +521,11 @@ public:
         return wxSize( wxMax( client.x, best.x ), wxMax( client.y, best.y ) );
     }
 
+    // returns the magnification of the backing store of this window
+    // eg 2.0 for a window on a retina screen
+    virtual double GetMagnificationFactor() const
+    { return 1.0; }
+    
     // return the size of the left/right and top/bottom borders in x and y
     // components of the result respectively
     virtual wxSize GetWindowBorderSize() const;