]> 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 6c31955a4778be549262ba836ef6f9d877272e2e..6de106cdfcf75a56d77a9ebf4e70e878ebc27f3d 100755 (executable)
@@ -83,13 +83,11 @@ public :
 
     void AddArc( const wxPoint2DDouble& c, wxDouble r, wxDouble startAngle, wxDouble endAngle, bool clockwise);
        
-       /*
        // returns the native path
-       virtual void * GetNativePath() = 0;
+       virtual void * GetNativePath() const = 0;
        
        // give the native path returned by GetNativePath() back (there might be some deallocations necessary)
        virtual void UnGetNativePath(void *p) = 0;
-       */
 
     DECLARE_NO_COPY_CLASS(wxGraphicsPath)
     DECLARE_ABSTRACT_CLASS(wxGraphicsPath)
@@ -265,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)
 };