1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
14 //-----------------------------------------------------------------------------
16 //-----------------------------------------------------------------------------
19 class WXDLLIMPEXP_CORE wxGTKImplDC
: public wxDC
21 #define wxGTKImplDC wxDC
22 class WXDLLIMPEXP_CORE wxGTKImplDC
: public wxDCBase
28 virtual ~wxGTKImplDC() { }
31 void SetColourMap( const wxPalette
& palette
) { SetPalette(palette
); };
32 #endif // wxUSE_PALETTE
34 // Resolution in pixels per logical inch
35 virtual wxSize
GetPPI() const;
37 virtual bool StartDoc( const wxString
& WXUNUSED(message
) ) { return true; }
38 virtual void EndDoc() { }
39 virtual void StartPage() { }
40 virtual void EndPage() { }
42 virtual GdkWindow
* GetGDKWindow() const { return NULL
; }
46 wxCoord
XDEV2LOG(wxCoord x
) const { return DeviceToLogicalX(x
); }
47 wxCoord
XDEV2LOGREL(wxCoord x
) const { return DeviceToLogicalXRel(x
); }
48 wxCoord
YDEV2LOG(wxCoord y
) const { return DeviceToLogicalY(y
); }
49 wxCoord
YDEV2LOGREL(wxCoord y
) const { return DeviceToLogicalYRel(y
); }
50 wxCoord
XLOG2DEV(wxCoord x
) const { return LogicalToDeviceX(x
); }
51 wxCoord
XLOG2DEVREL(wxCoord x
) const { return LogicalToDeviceXRel(x
); }
52 wxCoord
YLOG2DEV(wxCoord y
) const { return LogicalToDeviceY(y
); }
53 wxCoord
YLOG2DEVREL(wxCoord y
) const { return LogicalToDeviceYRel(y
); }
55 // base class pure virtuals implemented here
56 virtual void DoSetClippingRegion(wxCoord x
, wxCoord y
, wxCoord width
, wxCoord height
);
57 virtual void DoGetSizeMM(int* width
, int* height
) const;
60 DECLARE_ABSTRACT_CLASS(wxGTKImplDC
)
63 // this must be defined when wxDC::Blit() honours the DC origian and needed to
64 // allow wxUniv code in univ/winuniv.cpp to work with versions of wxGTK
66 #ifndef wxHAS_WORKING_GTK_DC_BLIT
67 #define wxHAS_WORKING_GTK_DC_BLIT