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"
|
|
|
|
|
2006-10-30 14:41:46 -05:00
|
|
|
class WXDLLIMPEXP_CORE wxMemoryDC : public wxDC, public wxMemoryDCBase
|
2006-08-27 05:42:42 -04:00
|
|
|
{
|
|
|
|
public:
|
2006-10-30 14:41:46 -05:00
|
|
|
wxMemoryDC() { Init(); }
|
|
|
|
wxMemoryDC(wxBitmap& bitmap) { Init(); SelectObject(bitmap); }
|
2006-08-27 05:42:42 -04:00
|
|
|
wxMemoryDC(wxDC *dc); // create compatible DC
|
|
|
|
|
2006-09-18 07:20:58 -04:00
|
|
|
// implementation from now on:
|
|
|
|
|
|
|
|
wxBitmap GetSelectedObject() const { return m_bmp; }
|
|
|
|
|
2006-10-30 14:41:46 -05:00
|
|
|
protected:
|
|
|
|
virtual void DoSelect(const wxBitmap& bitmap);
|
|
|
|
|
2006-09-18 07:20:58 -04:00
|
|
|
private:
|
2006-10-30 14:41:46 -05:00
|
|
|
void Init();
|
|
|
|
|
2006-09-18 07:20:58 -04:00
|
|
|
wxBitmap m_bmp;
|
|
|
|
|
2006-08-27 05:42:42 -04:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxMemoryDC)
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _WX_DFB_DCMEMORY_H_
|
|
|
|
|