]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/dc.h
supporting a null cgimage so that we don't get exceptions, only an wxbitmap that...
[wxWidgets.git] / include / wx / gtk / dc.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/dc.h
3 // Purpose:
4 // Author: Robert Roebling
5 // Id: $Id$
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #ifndef _WX_GTKDC_H_
11 #define _WX_GTKDC_H_
12
13 #include "wx/dc.h"
14
15 //-----------------------------------------------------------------------------
16 // wxDC
17 //-----------------------------------------------------------------------------
18
19 class WXDLLIMPEXP_CORE wxGTKDCImpl : public wxDCImpl
20 {
21 public:
22 wxGTKDCImpl( wxDC *owner );
23 virtual ~wxGTKDCImpl();
24
25 #if wxUSE_PALETTE
26 void SetColourMap( const wxPalette& palette ) { SetPalette(palette); };
27 #endif // wxUSE_PALETTE
28
29 // Resolution in pixels per logical inch
30 virtual wxSize GetPPI() const;
31
32 virtual bool StartDoc( const wxString& WXUNUSED(message) ) { return true; }
33 virtual void EndDoc() { }
34 virtual void StartPage() { }
35 virtual void EndPage() { }
36
37 virtual GdkWindow* GetGDKWindow() const { return NULL; }
38
39 // base class pure virtuals implemented here
40 virtual void DoSetClippingRegion(wxCoord x, wxCoord y, wxCoord width, wxCoord height);
41 virtual void DoGetSizeMM(int* width, int* height) const;
42
43 DECLARE_ABSTRACT_CLASS(wxGTKDCImpl)
44 };
45
46 // this must be defined when wxDC::Blit() honours the DC origin and needed to
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
53 #endif // _WX_GTKDC_H_