#include "wx/dc.h"
#include "wx/region.h"
-class WXDLLIMPEXP_CORE wxWindow;
+class WXDLLIMPEXP_FWD_CORE wxWindow;
//-----------------------------------------------------------------------------
// wxWindowDC
#endif
{
public:
- wxGTKWindowImplDC();
- wxGTKWindowImplDC( wxWindow *win );
+
+
+#if wxUSE_NEW_DC
+ wxGTKWindowImplDC( wxDC *owner );
+ wxGTKWindowImplDC( wxDC *owner, wxWindow *win );
+#else
+ wxWindowDC();
+ wxWindowDC( wxWindow *win );
+#endif
virtual ~wxGTKWindowImplDC();
GdkGC *m_textGC;
GdkGC *m_bgGC;
GdkColormap *m_cmap;
- bool m_isMemDC;
bool m_isScreenDC;
- wxWindow *m_owner;
+ wxWindow *m_owningWindow;
wxRegion m_currentClippingRegion;
wxRegion m_paintClippingRegion;
PangoLayout *m_layout;
PangoFontDescription *m_fontdesc;
- void SetUpDC();
+ void SetUpDC( bool ismem = false );
void Destroy();
virtual void ComputeScaleAndOrigin();
virtual GdkWindow *GetGDKWindow() const { return m_window; }
private:
- DECLARE_DYNAMIC_CLASS(wxGTKWindowImplDC)
+ DECLARE_ABSTRACT_CLASS(wxGTKWindowImplDC)
};
//-----------------------------------------------------------------------------
#endif
{
public:
- wxGTKClientImplDC() { }
- wxGTKClientImplDC( wxWindow *win );
+
+#if wxUSE_NEW_DC
+ wxGTKClientImplDC( wxDC *owner );
+ wxGTKClientImplDC( wxDC *owner, wxWindow *win );
+#else
+ wxClientDC();
+ wxClientDC( wxWindow *win );
+#endif
protected:
virtual void DoGetSize(int *width, int *height) const;
private:
- DECLARE_DYNAMIC_CLASS(wxGTKClientImplDC)
+ DECLARE_ABSTRACT_CLASS(wxGTKClientImplDC)
};
//-----------------------------------------------------------------------------
#endif
{
public:
- wxGTKPaintImplDC() { }
- wxGTKPaintImplDC( wxWindow *win );
+
+#if wxUSE_NEW_DC
+ wxGTKPaintImplDC( wxDC *owner );
+ wxGTKPaintImplDC( wxDC *owner, wxWindow *win );
+#else
+ wxPaintDC();
+ wxPaintDC( wxWindow *win );
+#endif
private:
- DECLARE_DYNAMIC_CLASS(wxGTKPaintImplDC)
+ DECLARE_ABSTRACT_CLASS(wxGTKPaintImplDC)
};
#endif // __GTKDCCLIENTH__