]>
Commit | Line | Data |
---|---|---|
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 | 19 | class WXDLLIMPEXP_CORE wxGTKDCImpl : public wxDCImpl |
c801d85f | 20 | { |
463c1fa1 | 21 | public: |
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 | ||
772b3767 | 39 | protected: |
a23fd0e1 | 40 | // base class pure virtuals implemented here |
72cdf4c9 | 41 | virtual void DoSetClippingRegion(wxCoord x, wxCoord y, wxCoord width, wxCoord height); |
a23fd0e1 | 42 | virtual void DoGetSizeMM(int* width, int* height) const; |
8bbe427f | 43 | |
20e05ffb | 44 | private: |
888dde65 | 45 | DECLARE_ABSTRACT_CLASS(wxGTKDCImpl) |
c801d85f KB |
46 | }; |
47 | ||
888dde65 | 48 | // this must be defined when wxDC::Blit() honours the DC origin and needed to |
c3e44503 VZ |
49 | // allow wxUniv code in univ/winuniv.cpp to work with versions of wxGTK |
50 | // 2.3.[23] | |
51 | #ifndef wxHAS_WORKING_GTK_DC_BLIT | |
52 | #define wxHAS_WORKING_GTK_DC_BLIT | |
53 | #endif | |
54 | ||
380740af | 55 | #endif // _WX_GTKDC_H_ |