2002-02-05 11:34:33 -05: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 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
2002-02-05 11:34:33 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_DCMEMORY_H_
|
|
|
|
#define _WX_DCMEMORY_H_
|
|
|
|
|
|
|
|
#include "wx/dcclient.h"
|
|
|
|
|
2006-10-30 14:41:46 -05:00
|
|
|
class WXDLLIMPEXP_CORE wxMemoryDC : public wxWindowDC, public wxMemoryDCBase
|
2002-02-05 11:34:33 -05:00
|
|
|
{
|
|
|
|
public:
|
2006-10-30 14:41:46 -05:00
|
|
|
wxMemoryDC() { Init(); }
|
|
|
|
wxMemoryDC(wxBitmap& bitmap) { Init(); SelectObject(bitmap); }
|
2002-02-05 11:34:33 -05:00
|
|
|
wxMemoryDC( wxDC *dc ); // Create compatible DC
|
2006-09-05 16:47:48 -04:00
|
|
|
virtual ~wxMemoryDC();
|
2002-02-11 15:41:24 -05:00
|
|
|
|
|
|
|
// implementation
|
|
|
|
wxBitmap m_selected;
|
|
|
|
|
2006-02-08 16:47:09 -05:00
|
|
|
protected:
|
2006-10-30 14:41:46 -05:00
|
|
|
virtual void DoGetSize( int *width, int *height ) const;
|
|
|
|
virtual void DoSelect(const wxBitmap& bitmap);
|
|
|
|
|
|
|
|
private:
|
|
|
|
void Init();
|
2006-02-08 16:47:09 -05:00
|
|
|
|
2002-02-11 15:41:24 -05:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxMemoryDC)
|
2002-02-05 11:34:33 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// _WX_DCMEMORY_H_
|