X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5e25ba908f6a9e03f131e8ce9df19558c3e09a35..844f90fba68fc9fbd3e839825d406839ee9fb9fb:/include/wx/stubs/dcclient.h diff --git a/include/wx/stubs/dcclient.h b/include/wx/stubs/dcclient.h index 828a507d75..29e4e6f7a0 100644 --- a/include/wx/stubs/dcclient.h +++ b/include/wx/stubs/dcclient.h @@ -23,34 +23,28 @@ //----------------------------------------------------------------------------- class WXDLLEXPORT wxPaintDC; +class WXDLLEXPORT wxWindow; // Under Windows, wxClientDC, wxPaintDC and wxWindowDC are implemented differently. // On many platforms, however, they will be the same. -typedef wxPaintDC wxClientDC; -typedef wxPaintDC wxWindowDC; - -//----------------------------------------------------------------------------- -// wxPaintDC -//----------------------------------------------------------------------------- - -class WXDLLEXPORT wxPaintDC: public wxDC +class WXDLLEXPORT wxWindowDC: public wxDC { - DECLARE_DYNAMIC_CLASS(wxPaintDC) + DECLARE_DYNAMIC_CLASS(wxWindowDC) public: - wxPaintDC(void); - wxPaintDC( wxWindow *win ); - - ~wxPaintDC(void); + wxWindowDC(void); + wxWindowDC( wxWindow *win ); + + ~wxWindowDC(void); - virtual void FloodFill( long x1, long y1, wxColour *col, int style=wxFLOOD_SURFACE ); + virtual void FloodFill( long x1, long y1, const wxColour& col, int style=wxFLOOD_SURFACE ); virtual bool GetPixel( long x1, long y1, wxColour *col ) const; virtual void DrawLine( long x1, long y1, long x2, long y2 ); virtual void CrossHair( long x, long y ); - virtual void DrawArc( long x1, long y1, long x2, long y2, double xc, double yc ); + virtual void DrawArc( long x1, long y1, long x2, long y2, long xc, long yc ); virtual void DrawEllipticArc( long x, long y, long width, long height, double sa, double ea ); virtual void DrawPoint( long x, long y ); @@ -91,9 +85,40 @@ class WXDLLEXPORT wxPaintDC: public wxDC virtual void SetPalette( const wxPalette& palette ); virtual void SetClippingRegion( long x, long y, long width, long height ); + virtual void SetClippingRegion( const wxRegion& region ) ; virtual void DestroyClippingRegion(void); - virtual void DrawOpenSpline( wxList *points ); + virtual void DrawSpline( wxList *points ); +}; + +//----------------------------------------------------------------------------- +// wxPaintDC +//----------------------------------------------------------------------------- + +class WXDLLEXPORT wxPaintDC: public wxWindowDC +{ + DECLARE_DYNAMIC_CLASS(wxPaintDC) + + public: + + wxPaintDC(void):wxWindowDC() {}; + wxPaintDC( wxWindow *win ): wxWindowDC(win) {}; + +}; + +//----------------------------------------------------------------------------- +// wxClientDC +//----------------------------------------------------------------------------- + +class WXDLLEXPORT wxClientDC: public wxWindowDC +{ + DECLARE_DYNAMIC_CLASS(wxClientDC) + + public: + + wxClientDC(void):wxWindowDC() {}; + wxClientDC( wxWindow *win ): wxWindowDC(win) {}; + }; #endif