1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_GTK_DCMEMORY_H_
11 #define _WX_GTK_DCMEMORY_H_
13 #include "wx/dcclient.h"
15 //-----------------------------------------------------------------------------
17 //-----------------------------------------------------------------------------
21 class WXDLLIMPEXP_CORE wxGTKMemoryImplDC
: public wxGTKWindowImplDC
, public wxMemoryImplDCBase
23 #define wxGTKMemoryImplDC wxMemoryDC
24 class WXDLLIMPEXP_CORE wxMemoryDC
: public wxWindowDC
, public wxMemoryDCBase
30 wxGTKMemoryImplDC( wxMemoryDC
*owner
);
31 wxGTKMemoryImplDC( wxMemoryDC
*owner
, wxBitmap
& bitmap
);
32 wxGTKMemoryImplDC( wxMemoryDC
*owner
, wxDC
*dc
);
35 wxMemoryDC(wxBitmap
& bitmap
);
36 wxMemoryDC( wxDC
*dc
);
39 virtual ~wxGTKMemoryImplDC();
41 // these get reimplemented for mono-bitmaps to behave
42 // more like their Win32 couterparts. They now interpret
43 // wxWHITE, wxWHITE_BRUSH and wxWHITE_PEN as drawing 0
44 // and everything else as drawing 1.
45 virtual void SetPen( const wxPen
&pen
);
46 virtual void SetBrush( const wxBrush
&brush
);
47 virtual void SetBackground( const wxBrush
&brush
);
48 virtual void SetTextForeground( const wxColour
&col
);
49 virtual void SetTextBackground( const wxColour
&col
);
52 wxBitmap
GetSelectedBitmap() const { return m_selected
; }
55 // overridden from wxImplDC
56 virtual void DoGetSize( int *width
, int *height
) const;
57 virtual wxBitmap
DoGetAsBitmap(const wxRect
*subrect
) const;
59 // overridden from wxMemoryImplDCBase
60 virtual void DoSelect(const wxBitmap
& bitmap
);
61 virtual const wxBitmap
& DoGetSelectedBitmap() const;
62 virtual wxBitmap
& DoGetSelectedBitmap();
69 DECLARE_ABSTRACT_CLASS(wxGTKMemoryImplDC
)
72 #endif // _WX_GTK_DCMEMORY_H_