1999-01-01 16:05:26 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: dcmemory.h
|
|
|
|
// Purpose: wxMemoryDC class
|
2003-02-28 21:54:04 +00:00
|
|
|
// Author: Stefan Csomor
|
1999-01-01 16:05:26 +00:00
|
|
|
// Modified by:
|
2003-02-28 21:54:04 +00:00
|
|
|
// Created: 1998-01-01
|
1999-01-01 16:05:26 +00:00
|
|
|
// RCS-ID: $Id$
|
2003-02-28 21:54:04 +00:00
|
|
|
// Copyright: (c) Stefan Csomor
|
2003-02-28 23:36:37 +00:00
|
|
|
// Licence: wxWindows licence
|
1999-01-01 16:05:26 +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)
|
1999-01-01 16:05:26 +00:00
|
|
|
#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
|
|
|
|
~wxMemoryDC(void);
|
|
|
|
virtual void SelectObject( const wxBitmap& bitmap );
|
2001-05-08 07:29:46 +00:00
|
|
|
virtual void DoGetSize( int *width, int *height ) const;
|
2003-02-28 23:36:37 +00:00
|
|
|
wxBitmap GetSelectedObject() { return m_selected ; }
|
|
|
|
private:
|
1999-01-01 16:05:26 +00:00
|
|
|
wxBitmap m_selected;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// _WX_DCMEMORY_H_
|