2006-08-27 05:42:42 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/dfb/dcmemory.h
|
|
|
|
// Purpose: wxMemoryDC class declaration
|
|
|
|
// Created: 2006-08-10
|
|
|
|
// Author: Vaclav Slavik
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) 2006 REA Elektronik GmbH
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_DFB_DCMEMORY_H_
|
|
|
|
#define _WX_DFB_DCMEMORY_H_
|
|
|
|
|
|
|
|
#include "wx/dc.h"
|
|
|
|
#include "wx/bitmap.h"
|
|
|
|
|
|
|
|
class WXDLLIMPEXP_CORE wxMemoryDC : public wxDC
|
|
|
|
{
|
|
|
|
public:
|
2006-10-13 14:48:36 -04:00
|
|
|
wxMemoryDC( const wxBitmap& bitmap = wxNullBitmap );
|
2006-08-27 05:42:42 -04:00
|
|
|
wxMemoryDC(wxDC *dc); // create compatible DC
|
|
|
|
|
|
|
|
virtual void SelectObject(const wxBitmap& bitmap);
|
|
|
|
|
2006-09-18 07:20:58 -04:00
|
|
|
// implementation from now on:
|
|
|
|
|
|
|
|
wxBitmap GetSelectedObject() const { return m_bmp; }
|
|
|
|
|
|
|
|
private:
|
|
|
|
wxBitmap m_bmp;
|
|
|
|
|
2006-08-27 05:42:42 -04:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxMemoryDC)
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _WX_DFB_DCMEMORY_H_
|
|
|
|
|