]> git.saurik.com Git - wxWidgets.git/blame - include/wx/motif/dcmemory.h
Applied [ 1708971 ] Make a virtual function to enable/disable docking
[wxWidgets.git] / include / wx / motif / dcmemory.h
CommitLineData
9b6dbb09 1/////////////////////////////////////////////////////////////////////////////
925f7740 2// Name: wx/motif/dcmemory.h
9b6dbb09
JS
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
fea35690 17class WXDLLIMPEXP_CORE wxMemoryDC : public wxWindowDC, public wxMemoryDCBase
9b6dbb09 18{
83df96d6 19 DECLARE_DYNAMIC_CLASS(wxMemoryDC)
925f7740 20
af0bb3b1 21public:
fea35690
VZ
22 wxMemoryDC() { Init(); }
23 wxMemoryDC(wxBitmap& bitmap) { Init(); SelectObject(bitmap); }
9b6dbb09 24 wxMemoryDC( wxDC *dc ); // Create compatible DC
d3c7fc99 25 virtual ~wxMemoryDC();
925f7740 26
96f201da 27 void DoGetSize( int *width, int *height ) const;
925f7740 28
af0bb3b1 29 wxBitmap& GetBitmap() const { return (wxBitmap&) m_bitmap; }
925f7740 30
fea35690
VZ
31protected:
32 virtual void DoSelect(const wxBitmap& bitmap);
33
af0bb3b1 34private:
f6bcfd97 35 friend class wxPaintDC;
925f7740 36
fea35690
VZ
37 void Init();
38
16c1f7f3 39 wxBitmap m_bitmap;
9b6dbb09
JS
40};
41
42#endif
83df96d6 43// _WX_DCMEMORY_H_