]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/gtk1/dcmemory.h
Added wxTreeCtrl::GetItemParent to deprecate GetParent.
[wxWidgets.git] / include / wx / gtk1 / dcmemory.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: dcmemory.h
3// Purpose:
4// Author: Robert Roebling
5// RCS-ID: $Id$
6// Copyright: (c) 1998 Robert Roebling
7// Licence: wxWindows licence
8/////////////////////////////////////////////////////////////////////////////
9
10
11#ifndef __GTKDCMEMORYH__
12#define __GTKDCMEMORYH__
13
14#if defined(__GNUG__) && !defined(__APPLE__)
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
31class wxMemoryDC : public wxWindowDC
32{
33public:
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;
39
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
49 // implementation
50 wxBitmap m_selected;
51
52private:
53 DECLARE_DYNAMIC_CLASS(wxMemoryDC)
54};
55
56#endif
57 // __GTKDCMEMORYH__
58