1999-07-29 05:11:30 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: dcmemory.h
|
|
|
|
// Purpose: wxMemoryDC class
|
1999-10-05 22:10:56 +00:00
|
|
|
// Author: David Webster
|
1999-07-29 05:11:30 +00:00
|
|
|
// Modified by:
|
1999-10-05 22:10:56 +00:00
|
|
|
// Created: 09/09/99
|
1999-07-29 05:11:30 +00:00
|
|
|
// RCS-ID: $Id$
|
1999-10-05 22:10:56 +00:00
|
|
|
// Copyright: (c) David Webster
|
2004-05-23 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
1999-07-29 05:11:30 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_DCMEMORY_H_
|
|
|
|
#define _WX_DCMEMORY_H_
|
|
|
|
|
|
|
|
#include "wx/dcclient.h"
|
|
|
|
|
1999-10-14 22:36:24 +00:00
|
|
|
class WXDLLEXPORT wxMemoryDC: public wxDC
|
1999-07-29 05:11:30 +00:00
|
|
|
{
|
2001-03-22 23:23:19 +00:00
|
|
|
public:
|
1999-07-29 05:11:30 +00:00
|
|
|
wxMemoryDC(void);
|
2001-03-22 23:23:19 +00:00
|
|
|
wxMemoryDC(wxDC* pDC); // Create compatible DC
|
1999-10-02 01:44:39 +00:00
|
|
|
|
2001-03-22 23:23:19 +00:00
|
|
|
virtual void SelectObject(const wxBitmap& rBitmap);
|
2001-04-11 18:04:54 +00:00
|
|
|
protected:
|
|
|
|
// override some base class virtuals
|
2001-03-22 23:23:19 +00:00
|
|
|
virtual void DoGetSize( int* pWidth
|
|
|
|
,int* pHeight
|
|
|
|
) const;
|
2001-04-11 18:04:54 +00:00
|
|
|
// create DC compatible with the given one or screen if dc == NULL
|
|
|
|
bool CreateCompatible(wxDC* pDC);
|
|
|
|
|
|
|
|
// initialize the newly created DC
|
|
|
|
void Init(void);
|
|
|
|
private:
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxMemoryDC)
|
2001-03-22 23:23:19 +00:00
|
|
|
}; // end of CLASS wxMemoryDC
|
1999-07-29 05:11:30 +00:00
|
|
|
|
|
|
|
#endif
|
|
|
|
// _WX_DCMEMORY_H_
|