]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/dcmemory.h
removed wxUSE_IMAGE_LOADING_IN_MSW and wxUSE_RESOURCE_LOADING_IN_MSW settings, they...
[wxWidgets.git] / include / wx / gtk / dcmemory.h
CommitLineData
c801d85f
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: dcmemory.h
3// Purpose:
4// Author: Robert Roebling
6f65e337 5// RCS-ID: $Id$
dbf858b5 6// Copyright: (c) 1998 Robert Roebling
8bbe427f 7// Licence: wxWindows licence
c801d85f
KB
8/////////////////////////////////////////////////////////////////////////////
9
10
11#ifndef __GTKDCMEMORYH__
12#define __GTKDCMEMORYH__
13
ab7ce33c 14#if defined(__GNUG__) && !defined(__APPLE__)
c801d85f
KB
15#pragma interface
16#endif
17
18#include "wx/defs.h"
19#include "wx/dcclient.h"
20
21//-----------------------------------------------------------------------------
22// classes
23//-----------------------------------------------------------------------------
24
25class wxMemoryDC;
26
27//-----------------------------------------------------------------------------
28// wxMemoryDC
29//-----------------------------------------------------------------------------
30
72cdf4c9 31class wxMemoryDC : public wxWindowDC
c801d85f 32{
ec758a20 33public:
20e05ffb
RR
34 wxMemoryDC();
35 wxMemoryDC( wxDC *dc ); // Create compatible DC
36 ~wxMemoryDC();
37 virtual void SelectObject( const wxBitmap& bitmap );
38 void DoGetSize( int *width, int *height ) const;
c801d85f 39
41fbc841
RR
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 );
48
20e05ffb
RR
49 // implementation
50 wxBitmap m_selected;
8bbe427f 51
20e05ffb
RR
52private:
53 DECLARE_DYNAMIC_CLASS(wxMemoryDC)
c801d85f
KB
54};
55
56#endif
57 // __GTKDCMEMORYH__
58