X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ab7ce33c563651f790f99d64ee56727706047ae3..7f5d8b0085b0140f62fb49dd8a0e50ed895e4632:/contrib/include/wx/ogl/drawnp.h diff --git a/contrib/include/wx/ogl/drawnp.h b/contrib/include/wx/ogl/drawnp.h index 98ca0a8b65..d80643301b 100644 --- a/contrib/include/wx/ogl/drawnp.h +++ b/contrib/include/wx/ogl/drawnp.h @@ -16,7 +16,6 @@ #pragma interface "drawnp.h" #endif -#include /* * Drawing operations @@ -55,7 +54,7 @@ * */ -class wxDrawOp: public wxObject +class WXDLLIMPEXP_OGL wxDrawOp: public wxObject { public: inline wxDrawOp(int theOp) { m_op = theOp; } @@ -65,9 +64,10 @@ public: inline virtual void Rotate(double x, double y, double theta, double sinTheta, double cosTheta) {}; virtual void Do(wxDC& dc, double xoffset, double yoffset) = 0; virtual wxDrawOp *Copy(wxPseudoMetaFile *newImage) = 0; +#if wxUSE_PROLOGIO virtual wxExpr *WriteExpr(wxPseudoMetaFile *image) = 0; virtual void ReadExpr(wxPseudoMetaFile *image, wxExpr *expr) = 0; - +#endif inline int GetOp() const { return m_op; } // Draw an outline using the current operation. By default, return FALSE (not drawn) @@ -92,14 +92,16 @@ protected: * */ -class wxOpSetGDI: public wxDrawOp +class WXDLLIMPEXP_OGL wxOpSetGDI: public wxDrawOp { public: wxOpSetGDI(int theOp, wxPseudoMetaFile *theImage, int theGdiIndex, int theMode = 0); void Do(wxDC& dc, double xoffset, double yoffset); wxDrawOp *Copy(wxPseudoMetaFile *newImage); +#if wxUSE_PROLOGIO wxExpr *WriteExpr(wxPseudoMetaFile *image); void ReadExpr(wxPseudoMetaFile *image, wxExpr *expr); +#endif public: int m_mode; @@ -115,7 +117,7 @@ public: * */ -class wxOpSetClipping: public wxDrawOp +class WXDLLIMPEXP_OGL wxOpSetClipping: public wxDrawOp { public: wxOpSetClipping(int theOp, double theX1, double theY1, double theX2, double theY2); @@ -123,8 +125,10 @@ public: void Scale(double xScale, double yScale); void Translate(double x, double y); wxDrawOp *Copy(wxPseudoMetaFile *newImage); +#if wxUSE_PROLOGIO wxExpr *WriteExpr(wxPseudoMetaFile *image); void ReadExpr(wxPseudoMetaFile *image, wxExpr *expr); +#endif public: double m_x1; @@ -138,7 +142,7 @@ public: * */ -class wxOpDraw: public wxDrawOp +class WXDLLIMPEXP_OGL wxOpDraw: public wxDrawOp { public: wxOpDraw(int theOp, double theX1, double theY1, double theX2, double theY2, @@ -149,8 +153,10 @@ class wxOpDraw: public wxDrawOp void Translate(double x, double y); void Rotate(double x, double y, double theta, double sinTheta, double cosTheta); wxDrawOp *Copy(wxPseudoMetaFile *newImage); +#if wxUSE_PROLOGIO wxExpr *WriteExpr(wxPseudoMetaFile *image); void ReadExpr(wxPseudoMetaFile *image, wxExpr *expr); +#endif public: double m_x1; @@ -169,7 +175,7 @@ public: * */ -class wxOpPolyDraw: public wxDrawOp +class WXDLLIMPEXP_OGL wxOpPolyDraw: public wxDrawOp { public: wxOpPolyDraw(int theOp, int n, wxRealPoint *thePoints); @@ -179,8 +185,10 @@ public: void Translate(double x, double y); void Rotate(double x, double y, double theta, double sinTheta, double cosTheta); wxDrawOp *Copy(wxPseudoMetaFile *newImage); +#if wxUSE_PROLOGIO wxExpr *WriteExpr(wxPseudoMetaFile *image); void ReadExpr(wxPseudoMetaFile *image, wxExpr *expr); +#endif // Draw an outline using the current operation. virtual bool OnDrawOutline(wxDC& dc, double x, double y, double w, double h,