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_
|
|
|
|
|
2003-08-09 12:38:21 +00:00
|
|
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
2002-02-05 16:34:33 +00:00
|
|
|
#pragma interface "dcmemory.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "wx/dcclient.h"
|
|
|
|
|
|
|
|
class wxMemoryDC : public wxWindowDC
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxMemoryDC();
|
|
|
|
wxMemoryDC( wxDC *dc ); // Create compatible DC
|
|
|
|
~wxMemoryDC();
|
|
|
|
virtual void SelectObject( const wxBitmap& bitmap );
|
|
|
|
void DoGetSize( int *width, int *height ) const;
|
2002-02-11 20:41:24 +00:00
|
|
|
|
|
|
|
// implementation
|
|
|
|
wxBitmap m_selected;
|
|
|
|
|
2002-02-05 16:34:33 +00:00
|
|
|
private:
|
2002-02-11 20:41:24 +00:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxMemoryDC)
|
2002-02-05 16:34:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// _WX_DCMEMORY_H_
|