]> git.saurik.com Git - wxWidgets.git/blame - include/wx/motif/dcmemory.h
HTML_xxxx constants changed to wxHTML_xxxx (with backward compatibility through WXWIN...
[wxWidgets.git] / include / wx / motif / dcmemory.h
CommitLineData
9b6dbb09
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: dcmemory.h
3// Purpose: wxMemoryDC class
4// Author: Julian Smart
5// Modified by:
6// Created: 17/09/98
7// RCS-ID: $Id$
8// Copyright: (c) Julian Smart
af0bb3b1 9// Licence: wxWindows licence
9b6dbb09
JS
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_DCMEMORY_H_
13#define _WX_DCMEMORY_H_
14
15#ifdef __GNUG__
af0bb3b1 16 #pragma interface "dcmemory.h"
9b6dbb09
JS
17#endif
18
19#include "wx/dcclient.h"
20
af0bb3b1 21class wxMemoryDC : public wxWindowDC
9b6dbb09 22{
af0bb3b1 23DECLARE_DYNAMIC_CLASS(wxMemoryDC)
9b6dbb09 24
af0bb3b1
VZ
25public:
26 wxMemoryDC();
9b6dbb09 27 wxMemoryDC( wxDC *dc ); // Create compatible DC
af0bb3b1
VZ
28 ~wxMemoryDC();
29
9b6dbb09 30 virtual void SelectObject( const wxBitmap& bitmap );
af0bb3b1 31
96f201da 32 void DoGetSize( int *width, int *height ) const;
9b6dbb09 33
af0bb3b1 34 wxBitmap& GetBitmap() const { return (wxBitmap&) m_bitmap; }
16c1f7f3 35
af0bb3b1 36private:
9b6dbb09 37 friend wxPaintDC;
af0bb3b1 38
16c1f7f3 39 wxBitmap m_bitmap;
9b6dbb09
JS
40};
41
42#endif
43 // _WX_DCMEMORY_H_