]> git.saurik.com Git - wxWidgets.git/blame - include/wx/motif/dcmemory.h
Richtext interface fixes and additions for Phoenix
[wxWidgets.git] / include / wx / motif / dcmemory.h
CommitLineData
9b6dbb09 1/////////////////////////////////////////////////////////////////////////////
925f7740 2// Name: wx/motif/dcmemory.h
fce127d7 3// Purpose: wxMemoryDCImpl class
9b6dbb09
JS
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
fce127d7 15#include "wx/motif/dcclient.h"
9b6dbb09 16
fce127d7 17class WXDLLIMPEXP_CORE wxMemoryDCImpl : public wxWindowDCImpl
9b6dbb09 18{
af0bb3b1 19public:
fce127d7
VZ
20 wxMemoryDCImpl(wxMemoryDC *owner) : wxWindowDCImpl(owner) { Init(); }
21 wxMemoryDCImpl(wxMemoryDC *owner, wxBitmap& bitmap)
22 : wxWindowDCImpl(owner)
23 {
24 Init();
25 DoSelect(bitmap);
26 }
27
28 wxMemoryDCImpl(wxMemoryDC *owner, wxDC *dc);
29 virtual ~wxMemoryDCImpl();
30
31 virtual void DoGetSize( int *width, int *height ) const;
fea35690
VZ
32 virtual void DoSelect(const wxBitmap& bitmap);
33
af0bb3b1 34private:
f6bcfd97 35 friend class wxPaintDC;
925f7740 36
fea35690
VZ
37 void Init();
38
fce127d7
VZ
39 wxBitmap m_bitmap;
40
41 DECLARE_DYNAMIC_CLASS(wxMemoryDCImpl)
9b6dbb09
JS
42};
43
44#endif
83df96d6 45// _WX_DCMEMORY_H_