]> git.saurik.com Git - wxWidgets.git/blame - include/wx/motif/dcmemory.h
Sorry, should be a __UNIX__ test
[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
65571936 9// Licence: wxWindows licence
9b6dbb09
JS
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_DCMEMORY_H_
13#define _WX_DCMEMORY_H_
14
12028905 15#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
83df96d6 16#pragma interface "dcmemory.h"
9b6dbb09
JS
17#endif
18
19#include "wx/dcclient.h"
20
af0bb3b1 21class wxMemoryDC : public wxWindowDC
9b6dbb09 22{
83df96d6
JS
23 DECLARE_DYNAMIC_CLASS(wxMemoryDC)
24
af0bb3b1
VZ
25public:
26 wxMemoryDC();
9b6dbb09 27 wxMemoryDC( wxDC *dc ); // Create compatible DC
af0bb3b1 28 ~wxMemoryDC();
83df96d6 29
9b6dbb09 30 virtual void SelectObject( const wxBitmap& bitmap );
83df96d6 31
96f201da 32 void DoGetSize( int *width, int *height ) const;
83df96d6 33
af0bb3b1 34 wxBitmap& GetBitmap() const { return (wxBitmap&) m_bitmap; }
83df96d6 35
af0bb3b1 36private:
f6bcfd97 37 friend class wxPaintDC;
83df96d6 38
16c1f7f3 39 wxBitmap m_bitmap;
9b6dbb09
JS
40};
41
42#endif
83df96d6 43// _WX_DCMEMORY_H_