# endif
#endif
+#ifdef __WXGTK__
+
+// wxGTK has its own wxPostscriptDC
+
+#include "wx/gtk/dcps.h"
+
+#else
+
class WXDLLEXPORT wxPostScriptDC: public wxDC
{
DECLARE_DYNAMIC_CLASS(wxPostScriptDC)
inline virtual void BeginDrawing(void) {} ;
inline virtual void EndDrawing(void) {} ;
- void FloodFill(long x1, long y1, wxColour *col, int style=wxFLOOD_SURFACE) ;
+ void FloodFill(long x1, long y1, const wxColour &col, int style=wxFLOOD_SURFACE) ;
bool GetPixel(long x1, long y1, wxColour *col) const;
void DrawLine(long x1, long y1, long x2, long y2);
void DrawSpline(wxList *points);
- void DrawIcon(const wxIcon& icon, long x, long y);
-#ifdef __WXGTK__
- void DrawIcon(const wxIcon& icon, long x, long y, bool WXUNUSED(usemask) )
- { DrawIcon( icon, x, y ); }
-#endif
+ void DrawIcon( const wxIcon& icon, long x, long y );
+ void DrawBitmap( const wxBitmap& bitmap, long x, long y, bool useMask=FALSE );
void DrawText(const wxString& text, long x, long y, bool use16 = FALSE);
void Clear();
void SetBrush(const wxBrush& brush);
void SetLogicalFunction(int function);
void SetBackground(const wxBrush& brush);
+
void SetClippingRegion(long x, long y, long width, long height);
+ void SetClippingRegion( const wxRegion ®ion );
void DestroyClippingRegion();
bool StartDoc(const wxString& message);
double m_scaleFactor;
};
+#endif
+ // __WXGTK__
+
#define wxID_PRINTER_COMMAND 1
#define wxID_PRINTER_OPTIONS 2
#define wxID_PRINTER_ORIENTATION 3
WXDLLEXPORT_DATA(extern wxPrintPaperDatabase*) wxThePrintPaperDatabase;
-#endif // wxUSE_POSTSCRIPT
+#endif
+ // wxUSE_POSTSCRIPT
+
#endif
// _WX_POSTSCRPH__
+
+