]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/dcmemory.h
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
11 #ifndef __GTKDCMEMORYH__
12 #define __GTKDCMEMORYH__
19 #include "wx/dcclient.h"
21 //-----------------------------------------------------------------------------
23 //-----------------------------------------------------------------------------
27 //-----------------------------------------------------------------------------
29 //-----------------------------------------------------------------------------
31 class wxMemoryDC
: public wxWindowDC
35 wxMemoryDC( wxDC
*dc
); // Create compatible DC
37 virtual void SelectObject( const wxBitmap
& bitmap
);
38 void DoGetSize( int *width
, int *height
) const;
40 // these get reimplemented for mono-bitmaps to behave
41 // more like their Win32 couterparts. They now interpret
42 // wxWHITE, wxWHITE_BRUSH and wxWHITE_PEN as drawing 0
43 // and everything else as drawing 1.
44 virtual void SetPen( const wxPen
&pen
);
45 virtual void SetBrush( const wxBrush
&brush
);
46 virtual void SetTextForeground( const wxColour
&col
);
47 virtual void SetTextBackground( const wxColour
&col
);
53 DECLARE_DYNAMIC_CLASS(wxMemoryDC
)