1998-05-20 10:01:55 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2005-11-30 02:58:37 -05:00
|
|
|
// Name: wx/gtk/dc.h
|
1998-05-20 10:01:55 -04:00
|
|
|
// Purpose:
|
|
|
|
// Author: Robert Roebling
|
1998-10-26 05:56:58 -05:00
|
|
|
// Id: $Id$
|
|
|
|
// Copyright: (c) 1998 Robert Roebling
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 10:01:55 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2007-12-01 13:37:08 -05:00
|
|
|
#ifndef _WX_GTKDC_H_
|
|
|
|
#define _WX_GTKDC_H_
|
1998-05-20 10:01:55 -04:00
|
|
|
|
2007-12-01 13:37:08 -05:00
|
|
|
#include "wx/dc.h"
|
2007-05-06 16:14:55 -04:00
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
2007-05-08 19:47:43 -04:00
|
|
|
// wxDC
|
2007-05-03 18:29:01 -04:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
2007-11-30 08:48:22 -05:00
|
|
|
class WXDLLIMPEXP_CORE wxGTKDCImpl : public wxDCImpl
|
1998-05-20 10:01:55 -04:00
|
|
|
{
|
1998-12-03 10:14:45 -05:00
|
|
|
public:
|
2007-11-30 08:48:22 -05:00
|
|
|
wxGTKDCImpl( wxDC *owner );
|
|
|
|
virtual ~wxGTKDCImpl();
|
1998-05-20 10:01:55 -04:00
|
|
|
|
2005-11-30 02:58:37 -05:00
|
|
|
#if wxUSE_PALETTE
|
1999-05-13 17:21:04 -04:00
|
|
|
void SetColourMap( const wxPalette& palette ) { SetPalette(palette); };
|
2005-11-30 02:58:37 -05:00
|
|
|
#endif // wxUSE_PALETTE
|
1998-12-09 12:30:17 -05:00
|
|
|
|
1999-05-13 17:21:04 -04:00
|
|
|
// Resolution in pixels per logical inch
|
|
|
|
virtual wxSize GetPPI() const;
|
1998-05-20 10:01:55 -04:00
|
|
|
|
2004-12-16 16:24:45 -05:00
|
|
|
virtual bool StartDoc( const wxString& WXUNUSED(message) ) { return true; }
|
1999-05-13 17:21:04 -04:00
|
|
|
virtual void EndDoc() { }
|
|
|
|
virtual void StartPage() { }
|
|
|
|
virtual void EndPage() { }
|
1998-12-09 12:30:17 -05:00
|
|
|
|
2006-10-09 12:39:34 -04:00
|
|
|
virtual GdkWindow* GetGDKWindow() const { return NULL; }
|
|
|
|
|
1999-05-13 17:21:04 -04:00
|
|
|
// base class pure virtuals implemented here
|
1999-10-18 11:14:52 -04:00
|
|
|
virtual void DoSetClippingRegion(wxCoord x, wxCoord y, wxCoord width, wxCoord height);
|
1999-05-13 17:21:04 -04:00
|
|
|
virtual void DoGetSizeMM(int* width, int* height) const;
|
1998-12-09 12:30:17 -05:00
|
|
|
|
2007-11-30 08:48:22 -05:00
|
|
|
DECLARE_ABSTRACT_CLASS(wxGTKDCImpl)
|
1998-05-20 10:01:55 -04:00
|
|
|
};
|
|
|
|
|
2007-11-30 08:48:22 -05:00
|
|
|
// this must be defined when wxDC::Blit() honours the DC origin and needed to
|
2002-02-10 11:09:49 -05:00
|
|
|
// allow wxUniv code in univ/winuniv.cpp to work with versions of wxGTK
|
|
|
|
// 2.3.[23]
|
|
|
|
#ifndef wxHAS_WORKING_GTK_DC_BLIT
|
|
|
|
#define wxHAS_WORKING_GTK_DC_BLIT
|
|
|
|
#endif
|
|
|
|
|
2007-12-01 13:37:08 -05:00
|
|
|
#endif // _WX_GTKDC_H_
|