1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk1/dcmemory.h
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef __GTKDCMEMORYH__
11 #define __GTKDCMEMORYH__
13 #include "wx/dcmemory.h"
14 #include "wx/gtk1/dcclient.h"
16 //-----------------------------------------------------------------------------
18 //-----------------------------------------------------------------------------
20 class WXDLLIMPEXP_FWD_CORE wxMemoryDCImpl
;
22 //-----------------------------------------------------------------------------
24 //-----------------------------------------------------------------------------
26 class WXDLLIMPEXP_CORE wxMemoryDCImpl
: public wxWindowDCImpl
29 wxMemoryDCImpl(wxMemoryDC
*owner
)
30 : wxWindowDCImpl(owner
)
35 wxMemoryDCImpl(wxMemoryDC
*owner
, wxBitmap
& bitmap
)
36 : wxWindowDCImpl(owner
)
43 wxMemoryDCImpl(wxMemoryDC
*owner
, wxDC
*dc
);
44 virtual ~wxMemoryDCImpl();
46 virtual void DoSelect(const wxBitmap
& bitmap
);
47 virtual void DoGetSize( int *width
, int *height
) const;
49 // these get reimplemented for mono-bitmaps to behave
50 // more like their Win32 couterparts. They now interpret
51 // wxWHITE, wxWHITE_BRUSH and wxWHITE_PEN as drawing 0
52 // and everything else as drawing 1.
53 virtual void SetPen( const wxPen
&pen
);
54 virtual void SetBrush( const wxBrush
&brush
);
55 virtual void SetBackground( const wxBrush
&brush
);
56 virtual void SetTextForeground( const wxColour
&col
);
57 virtual void SetTextBackground( const wxColour
&col
);
65 DECLARE_DYNAMIC_CLASS(wxMemoryDCImpl
)
68 #endif // __GTKDCMEMORYH__