X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/72cdf4c9b3ce92addf09cfb322f0c19bfb0f8744..9a8d8c5a515b44a03b412c3637c4072be9950387:/include/wx/gtk/dc.h diff --git a/include/wx/gtk/dc.h b/include/wx/gtk/dc.h index c44beb9c53..84c79d7353 100644 --- a/include/wx/gtk/dc.h +++ b/include/wx/gtk/dc.h @@ -11,7 +11,7 @@ #ifndef __GTKDCH__ #define __GTKDCH__ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface #endif @@ -25,6 +25,7 @@ class wxDC; // constants //----------------------------------------------------------------------------- +#ifndef MM_TEXT #define MM_TEXT 0 #define MM_ISOTROPIC 1 #define MM_ANISOTROPIC 2 @@ -33,6 +34,7 @@ class wxDC; #define MM_TWIPS 5 #define MM_POINTS 6 #define MM_METRIC 7 +#endif //----------------------------------------------------------------------------- // wxDC @@ -40,17 +42,12 @@ class wxDC; class wxDC : public wxDCBase { - DECLARE_ABSTRACT_CLASS(wxDC) - public: wxDC(); ~wxDC() { } void SetColourMap( const wxPalette& palette ) { SetPalette(palette); }; - // the first two must be overridden and called - virtual void DestroyClippingRegion(); - // Resolution in pixels per logical inch virtual wxSize GetPPI() const; @@ -136,7 +133,6 @@ public: protected: // base class pure virtuals implemented here virtual void DoSetClippingRegion(wxCoord x, wxCoord y, wxCoord width, wxCoord height); - virtual void DoGetSize(int *width, int *height) const; virtual void DoGetSizeMM(int* width, int* height) const; public: @@ -150,7 +146,16 @@ public: bool m_needComputeScaleX, m_needComputeScaleY; // not yet used - float m_scaleFactor; // wxPSDC wants to have this. Will disappear. + +private: + DECLARE_ABSTRACT_CLASS(wxDC) }; +// this must be defined when wxDC::Blit() honours the DC origian and needed to +// allow wxUniv code in univ/winuniv.cpp to work with versions of wxGTK +// 2.3.[23] +#ifndef wxHAS_WORKING_GTK_DC_BLIT + #define wxHAS_WORKING_GTK_DC_BLIT +#endif + #endif // __GTKDCH__