1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef __GTKDCMEMORYH__
11 #define __GTKDCMEMORYH__
14 #include "wx/dcclient.h"
16 //-----------------------------------------------------------------------------
18 //-----------------------------------------------------------------------------
20 class WXDLLIMPEXP_CORE wxMemoryDC
;
22 //-----------------------------------------------------------------------------
24 //-----------------------------------------------------------------------------
26 class WXDLLIMPEXP_CORE wxMemoryDC
: public wxWindowDC
30 wxMemoryDC( wxDC
*dc
); // Create compatible DC
32 virtual void SelectObject( const wxBitmap
& bitmap
);
33 void DoGetSize( int *width
, int *height
) const;
35 // these get reimplemented for mono-bitmaps to behave
36 // more like their Win32 couterparts. They now interpret
37 // wxWHITE, wxWHITE_BRUSH and wxWHITE_PEN as drawing 0
38 // and everything else as drawing 1.
39 virtual void SetPen( const wxPen
&pen
);
40 virtual void SetBrush( const wxBrush
&brush
);
41 virtual void SetBackground( const wxBrush
&brush
);
42 virtual void SetTextForeground( const wxColour
&col
);
43 virtual void SetTextBackground( const wxColour
&col
);
49 DECLARE_DYNAMIC_CLASS(wxMemoryDC
)