1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
14 //-----------------------------------------------------------------------------
16 //-----------------------------------------------------------------------------
19 class WXDLLIMPEXP_CORE wxGTKImplDC
: public wxImplDC
21 #define wxGTKImplDC wxDC
22 class WXDLLIMPEXP_CORE wxDC
: public wxDCBase
28 wxGTKImplDC( wxDC
*owner
);
33 virtual ~wxGTKImplDC();
36 void SetColourMap( const wxPalette
& palette
) { SetPalette(palette
); };
37 #endif // wxUSE_PALETTE
39 // Resolution in pixels per logical inch
40 virtual wxSize
GetPPI() const;
42 virtual bool StartDoc( const wxString
& WXUNUSED(message
) ) { return true; }
43 virtual void EndDoc() { }
44 virtual void StartPage() { }
45 virtual void EndPage() { }
47 virtual GdkWindow
* GetGDKWindow() const { return NULL
; }
50 // base class pure virtuals implemented here
51 virtual void DoSetClippingRegion(wxCoord x
, wxCoord y
, wxCoord width
, wxCoord height
);
52 virtual void DoGetSizeMM(int* width
, int* height
) const;
55 DECLARE_ABSTRACT_CLASS(wxGTKImplDC
)
58 // this must be defined when wxDC::Blit() honours the DC origian and needed to
59 // allow wxUniv code in univ/winuniv.cpp to work with versions of wxGTK
61 #ifndef wxHAS_WORKING_GTK_DC_BLIT
62 #define wxHAS_WORKING_GTK_DC_BLIT