1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk1/dcmemory.h
4 // Author: Robert Roebling
5 // Copyright: (c) 1998 Robert Roebling
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
9 #ifndef __GTKDCMEMORYH__
10 #define __GTKDCMEMORYH__
12 #include "wx/dcmemory.h"
13 #include "wx/gtk1/dcclient.h"
15 //-----------------------------------------------------------------------------
17 //-----------------------------------------------------------------------------
19 class WXDLLIMPEXP_FWD_CORE wxMemoryDCImpl
;
21 //-----------------------------------------------------------------------------
23 //-----------------------------------------------------------------------------
25 class WXDLLIMPEXP_CORE wxMemoryDCImpl
: public wxWindowDCImpl
28 wxMemoryDCImpl(wxMemoryDC
*owner
)
29 : wxWindowDCImpl(owner
)
34 wxMemoryDCImpl(wxMemoryDC
*owner
, wxBitmap
& bitmap
)
35 : wxWindowDCImpl(owner
)
42 wxMemoryDCImpl(wxMemoryDC
*owner
, wxDC
*dc
);
43 virtual ~wxMemoryDCImpl();
45 virtual void DoSelect(const wxBitmap
& bitmap
);
46 virtual void DoGetSize( int *width
, int *height
) const;
48 // these get reimplemented for mono-bitmaps to behave
49 // more like their Win32 couterparts. They now interpret
50 // wxWHITE, wxWHITE_BRUSH and wxWHITE_PEN as drawing 0
51 // and everything else as drawing 1.
52 virtual void SetPen( const wxPen
&pen
);
53 virtual void SetBrush( const wxBrush
&brush
);
54 virtual void SetBackground( const wxBrush
&brush
);
55 virtual void SetTextForeground( const wxColour
&col
);
56 virtual void SetTextBackground( const wxColour
&col
);
64 DECLARE_DYNAMIC_CLASS(wxMemoryDCImpl
)
67 #endif // __GTKDCMEMORYH__