X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8acd14d1779dd5610b0fa16b0863adc7df5d9a82..14d8546a757ff779aa01303930a17fd33f8ebaba:/include/wx/graphics.h?ds=sidebyside diff --git a/include/wx/graphics.h b/include/wx/graphics.h index 1c748a249d..6de106cdfc 100755 --- a/include/wx/graphics.h +++ b/include/wx/graphics.h @@ -26,7 +26,7 @@ class WXDLLEXPORT wxWindowDC; * in direction of positive y axis. */ -class WXDLLEXPORT wxGraphicsPath +class WXDLLEXPORT wxGraphicsPath : public wxObject { public : wxGraphicsPath() {} @@ -83,7 +83,14 @@ public : void AddArc( const wxPoint2DDouble& c, wxDouble r, wxDouble startAngle, wxDouble endAngle, bool clockwise); + // returns the native path + 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) }; /* @@ -120,7 +127,7 @@ public : } ; */ -class WXDLLEXPORT wxGraphicsContext +class WXDLLEXPORT wxGraphicsContext : public wxObject { public: wxGraphicsContext() {} @@ -256,9 +263,14 @@ 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) }; #endif