1999-07-29 01:11:30 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: dcmemory.h
|
|
|
|
// Purpose: wxMemoryDC class
|
1999-10-05 18:10:56 -04:00
|
|
|
// Author: David Webster
|
1999-07-29 01:11:30 -04:00
|
|
|
// Modified by:
|
1999-10-05 18:10:56 -04:00
|
|
|
// Created: 09/09/99
|
1999-07-29 01:11:30 -04:00
|
|
|
// RCS-ID: $Id$
|
1999-10-05 18:10:56 -04:00
|
|
|
// Copyright: (c) David Webster
|
|
|
|
// Licence: wxWindows licence
|
1999-07-29 01:11:30 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_DCMEMORY_H_
|
|
|
|
#define _WX_DCMEMORY_H_
|
|
|
|
|
|
|
|
#include "wx/dcclient.h"
|
|
|
|
|
1999-10-14 18:36:24 -04:00
|
|
|
class WXDLLEXPORT wxMemoryDC: public wxDC
|
1999-07-29 01:11:30 -04:00
|
|
|
{
|
2001-03-22 18:23:19 -05:00
|
|
|
public:
|
1999-07-29 01:11:30 -04:00
|
|
|
wxMemoryDC(void);
|
2001-03-22 18:23:19 -05:00
|
|
|
wxMemoryDC(wxDC* pDC); // Create compatible DC
|
1999-10-01 21:44:39 -04:00
|
|
|
|
2001-03-22 18:23:19 -05:00
|
|
|
virtual void SelectObject(const wxBitmap& rBitmap);
|
2001-04-11 14:04:54 -04:00
|
|
|
protected:
|
|
|
|
// override some base class virtuals
|
2001-03-22 18:23:19 -05:00
|
|
|
virtual void DoGetSize( int* pWidth
|
|
|
|
,int* pHeight
|
|
|
|
) const;
|
2001-04-11 14:04:54 -04: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 18:23:19 -05:00
|
|
|
}; // end of CLASS wxMemoryDC
|
1999-07-29 01:11:30 -04:00
|
|
|
|
|
|
|
#endif
|
|
|
|
// _WX_DCMEMORY_H_
|