]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/dcmemory.h
Compile fixes
[wxWidgets.git] / include / wx / gtk / dcmemory.h
CommitLineData
c801d85f
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: dcmemory.h
3// Purpose:
4// Author: Robert Roebling
6f65e337 5// RCS-ID: $Id$
dbf858b5 6// Copyright: (c) 1998 Robert Roebling
65571936 7// Licence: wxWindows licence
c801d85f
KB
8/////////////////////////////////////////////////////////////////////////////
9
c801d85f
KB
10#ifndef __GTKDCMEMORYH__
11#define __GTKDCMEMORYH__
12
c801d85f
KB
13#include "wx/defs.h"
14#include "wx/dcclient.h"
15
16//-----------------------------------------------------------------------------
17// classes
18//-----------------------------------------------------------------------------
19
20123d49 20class WXDLLIMPEXP_CORE wxMemoryDC;
c801d85f
KB
21
22//-----------------------------------------------------------------------------
23// wxMemoryDC
24//-----------------------------------------------------------------------------
25
20123d49 26class WXDLLIMPEXP_CORE wxMemoryDC : public wxWindowDC
c801d85f 27{
ec758a20 28public:
432efcb0 29 wxMemoryDC( const wxBitmap& bitmap = wxNullBitmap );
20e05ffb 30 wxMemoryDC( wxDC *dc ); // Create compatible DC
d3c7fc99 31 virtual ~wxMemoryDC();
20e05ffb 32 virtual void SelectObject( const wxBitmap& bitmap );
c801d85f 33
41fbc841
RR
34 // these get reimplemented for mono-bitmaps to behave
35 // more like their Win32 couterparts. They now interpret
36 // wxWHITE, wxWHITE_BRUSH and wxWHITE_PEN as drawing 0
37 // and everything else as drawing 1.
38 virtual void SetPen( const wxPen &pen );
39 virtual void SetBrush( const wxBrush &brush );
8ab40c52 40 virtual void SetBackground( const wxBrush &brush );
41fbc841
RR
41 virtual void SetTextForeground( const wxColour &col );
42 virtual void SetTextBackground( const wxColour &col );
43
20e05ffb 44 // implementation
f98bd6d6 45 virtual wxBitmap GetSelectedBitmap() const { return m_selected; }
20e05ffb 46 wxBitmap m_selected;
8bbe427f 47
6f02a879
VZ
48protected:
49 void DoGetSize( int *width, int *height ) const;
50
20e05ffb 51 DECLARE_DYNAMIC_CLASS(wxMemoryDC)
c801d85f
KB
52};
53
54#endif
55 // __GTKDCMEMORYH__
56