]> git.saurik.com Git - wxWidgets.git/blame - include/wx/motif/dcmemory.h
Make everything compile with GTK_DISABLE_DEPRECATED declared.
[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
9b6dbb09
JS
15#include "wx/dcclient.h"
16
94c7b088 17class WXDLLIMPEXP_CORE wxMemoryDC : public wxWindowDC
9b6dbb09 18{
83df96d6
JS
19 DECLARE_DYNAMIC_CLASS(wxMemoryDC)
20
af0bb3b1
VZ
21public:
22 wxMemoryDC();
9b6dbb09 23 wxMemoryDC( wxDC *dc ); // Create compatible DC
af0bb3b1 24 ~wxMemoryDC();
83df96d6 25
9b6dbb09 26 virtual void SelectObject( const wxBitmap& bitmap );
83df96d6 27
96f201da 28 void DoGetSize( int *width, int *height ) const;
83df96d6 29
af0bb3b1 30 wxBitmap& GetBitmap() const { return (wxBitmap&) m_bitmap; }
83df96d6 31
af0bb3b1 32private:
f6bcfd97 33 friend class wxPaintDC;
83df96d6 34
16c1f7f3 35 wxBitmap m_bitmap;
9b6dbb09
JS
36};
37
38#endif
83df96d6 39// _WX_DCMEMORY_H_