]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/dc.h
add some wxIMAGE_OPTION_PNG_xxx options to wxImage and wxPNGHandler to allow the...
[wxWidgets.git] / include / wx / gtk / dc.h
CommitLineData
c801d85f 1/////////////////////////////////////////////////////////////////////////////
0b04c4e0 2// Name: wx/gtk/dc.h
c801d85f
KB
3// Purpose:
4// Author: Robert Roebling
dbf858b5
RR
5// Id: $Id$
6// Copyright: (c) 1998 Robert Roebling
65571936 7// Licence: wxWindows licence
c801d85f
KB
8/////////////////////////////////////////////////////////////////////////////
9
380740af
PC
10#ifndef _WX_GTKDC_H_
11#define _WX_GTKDC_H_
c801d85f 12
380740af 13#include "wx/dc.h"
d296fd8f
RR
14
15//-----------------------------------------------------------------------------
2970ae54 16// wxDC
b86ad1d6
RR
17//-----------------------------------------------------------------------------
18
888dde65 19class WXDLLIMPEXP_CORE wxGTKDCImpl : public wxDCImpl
c801d85f 20{
463c1fa1 21public:
888dde65
RR
22 wxGTKDCImpl( wxDC *owner );
23 virtual ~wxGTKDCImpl();
c801d85f 24
0b04c4e0 25#if wxUSE_PALETTE
a23fd0e1 26 void SetColourMap( const wxPalette& palette ) { SetPalette(palette); };
0b04c4e0 27#endif // wxUSE_PALETTE
8bbe427f 28
a23fd0e1
VZ
29 // Resolution in pixels per logical inch
30 virtual wxSize GetPPI() const;
c801d85f 31
b1263dcf 32 virtual bool StartDoc( const wxString& WXUNUSED(message) ) { return true; }
a23fd0e1
VZ
33 virtual void EndDoc() { }
34 virtual void StartPage() { }
35 virtual void EndPage() { }
8bbe427f 36
2e992e06
VZ
37 virtual GdkWindow* GetGDKWindow() const { return NULL; }
38
a23fd0e1 39 // base class pure virtuals implemented here
72cdf4c9 40 virtual void DoSetClippingRegion(wxCoord x, wxCoord y, wxCoord width, wxCoord height);
a23fd0e1 41 virtual void DoGetSizeMM(int* width, int* height) const;
8bbe427f 42
888dde65 43 DECLARE_ABSTRACT_CLASS(wxGTKDCImpl)
c801d85f
KB
44};
45
888dde65 46// this must be defined when wxDC::Blit() honours the DC origin and needed to
c3e44503
VZ
47// allow wxUniv code in univ/winuniv.cpp to work with versions of wxGTK
48// 2.3.[23]
49#ifndef wxHAS_WORKING_GTK_DC_BLIT
50 #define wxHAS_WORKING_GTK_DC_BLIT
51#endif
52
380740af 53#endif // _WX_GTKDC_H_