1999-01-01 11:05:26 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: dcmemory.h
|
|
|
|
// Purpose: wxMemoryDC class
|
2003-02-28 16:54:04 -05:00
|
|
|
// Author: Stefan Csomor
|
1999-01-01 11:05:26 -05:00
|
|
|
// Modified by:
|
2003-02-28 16:54:04 -05:00
|
|
|
// Created: 1998-01-01
|
1999-01-01 11:05:26 -05:00
|
|
|
// RCS-ID: $Id$
|
2003-02-28 16:54:04 -05:00
|
|
|
// Copyright: (c) Stefan Csomor
|
2003-02-28 18:36:37 -05:00
|
|
|
// Licence: wxWindows licence
|
1999-01-01 11:05:26 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_DCMEMORY_H_
|
|
|
|
#define _WX_DCMEMORY_H_
|
|
|
|
|
2002-08-31 07:29:13 -04:00
|
|
|
#if defined(__GNUG__) && !defined(__APPLE__)
|
1999-01-01 11:05:26 -05: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 03:29:46 -04:00
|
|
|
virtual void DoGetSize( int *width, int *height ) const;
|
2003-02-28 18:36:37 -05:00
|
|
|
wxBitmap GetSelectedObject() { return m_selected ; }
|
|
|
|
private:
|
1999-01-01 11:05:26 -05:00
|
|
|
wxBitmap m_selected;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// _WX_DCMEMORY_H_
|