2002-02-05 16:34:33 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: dcmemory.h
|
|
|
|
// Purpose: wxMemoryDC class
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 17/09/98
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Julian Smart
|
2004-05-23 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
2002-02-05 16:34:33 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_DCMEMORY_H_
|
|
|
|
#define _WX_DCMEMORY_H_
|
|
|
|
|
|
|
|
#include "wx/dcclient.h"
|
|
|
|
|
2006-10-30 19:41:46 +00:00
|
|
|
class WXDLLIMPEXP_CORE wxMemoryDC : public wxWindowDC, public wxMemoryDCBase
|
2002-02-05 16:34:33 +00:00
|
|
|
{
|
|
|
|
public:
|
2006-10-30 19:41:46 +00:00
|
|
|
wxMemoryDC() { Init(); }
|
|
|
|
wxMemoryDC(wxBitmap& bitmap) { Init(); SelectObject(bitmap); }
|
2002-02-05 16:34:33 +00:00
|
|
|
wxMemoryDC( wxDC *dc ); // Create compatible DC
|
2006-09-05 20:47:48 +00:00
|
|
|
virtual ~wxMemoryDC();
|
2002-02-11 20:41:24 +00:00
|
|
|
|
|
|
|
// implementation
|
|
|
|
wxBitmap m_selected;
|
|
|
|
|
2006-02-08 21:47:09 +00:00
|
|
|
protected:
|
2006-10-30 19:41:46 +00:00
|
|
|
virtual void DoGetSize( int *width, int *height ) const;
|
|
|
|
virtual void DoSelect(const wxBitmap& bitmap);
|
|
|
|
|
|
|
|
private:
|
|
|
|
void Init();
|
2006-02-08 21:47:09 +00:00
|
|
|
|
2002-02-11 20:41:24 +00:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxMemoryDC)
|
2002-02-05 16:34:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// _WX_DCMEMORY_H_
|