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_
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface "dcmemory.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "wx/dcclient.h"
|
|
|
|
|
|
|
|
class WXDLLEXPORT wxMemoryDC: public wxPaintDC
|
|
|
|
{
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxMemoryDC)
|
|
|
|
|
|
|
|
public:
|
|
|
|
wxMemoryDC(void);
|
|
|
|
wxMemoryDC( wxDC *dc ); // Create compatible DC
|
1999-10-01 21:44:39 -04:00
|
|
|
|
1999-07-29 01:11:30 -04:00
|
|
|
~wxMemoryDC(void);
|
|
|
|
virtual void SelectObject( const wxBitmap& bitmap );
|
|
|
|
void GetSize( int *width, int *height ) const;
|
|
|
|
|
1999-10-01 21:44:39 -04:00
|
|
|
private:
|
1999-07-29 01:11:30 -04:00
|
|
|
friend wxPaintDC;
|
|
|
|
wxBitmap m_selected;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// _WX_DCMEMORY_H_
|