X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e8b86d2538a5d5c2f39f2061f57e1b90423f7423..ade4ae2c51fd5406a8d7bbebc36ccd2c94e48c59:/include/wx/gtk1/dc.h diff --git a/include/wx/gtk1/dc.h b/include/wx/gtk1/dc.h index 8d6a4b1a89..b057e85126 100644 --- a/include/wx/gtk1/dc.h +++ b/include/wx/gtk1/dc.h @@ -10,21 +10,17 @@ #ifndef __GTKDCH__ #define __GTKDCH__ -//----------------------------------------------------------------------------- -// classes -//----------------------------------------------------------------------------- - -class WXDLLIMPEXP_CORE wxDC; +#include "wx/dc.h" //----------------------------------------------------------------------------- // wxDC //----------------------------------------------------------------------------- -class WXDLLIMPEXP_CORE wxDC : public wxDCBase +class WXDLLIMPEXP_CORE wxGTKDCImpl : public wxDCImpl { public: - wxDC(); - virtual ~wxDC() { } + wxGTKDCImpl(wxDC *owner); + virtual ~wxGTKDCImpl() { } #if wxUSE_PALETTE void SetColourMap( const wxPalette& palette ) { SetPalette(palette); }; @@ -38,6 +34,8 @@ public: virtual void StartPage() { } virtual void EndPage() { } + virtual GdkWindow* GetGDKWindow() const { return NULL; } + public: // implementation wxCoord XDEV2LOG(wxCoord x) const { return DeviceToLogicalX(x); } @@ -48,7 +46,7 @@ public: wxCoord XLOG2DEVREL(wxCoord x) const { return LogicalToDeviceXRel(x); } wxCoord YLOG2DEV(wxCoord y) const { return LogicalToDeviceY(y); } wxCoord YLOG2DEVREL(wxCoord y) const { return LogicalToDeviceYRel(y); } - + // base class pure virtuals implemented here virtual void DoSetClippingRegion(wxCoord x, wxCoord y, wxCoord width, wxCoord height); virtual void DoGetSizeMM(int* width, int* height) const;