]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/graphics.h
Override GetPixelSize on OS X as the base impl creates a wxScreenDC each time, which...
[wxWidgets.git] / include / wx / graphics.h
index e47ba09df8b84390bf8070bdaf0ccdc4fb39c736..6de106cdfcf75a56d77a9ebf4e70e878ebc27f3d 100755 (executable)
@@ -263,8 +263,12 @@ public:
     // draws a rounded rectangle
     virtual void DrawRoundedRectangle( wxDouble x, wxDouble y, wxDouble w, wxDouble h, wxDouble radius);
 
-     // wrappers using wxPoint2DDouble TODO
+    // wrappers using wxPoint2DDouble TODO
 
+    
+    // helper to determine if a 0.5 offset should be applied for the drawing operation
+    virtual bool ShouldOffset() const { return false; }
+    
     DECLARE_NO_COPY_CLASS(wxGraphicsContext)
     DECLARE_ABSTRACT_CLASS(wxGraphicsContext)
 };