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_
|
|
|
|
|
2007-12-14 17:41:07 -05:00
|
|
|
#include "wx/dfb/dc.h"
|
2006-08-27 05:42:42 -04:00
|
|
|
#include "wx/bitmap.h"
|
|
|
|
|
2007-12-14 17:41:07 -05:00
|
|
|
class WXDLLIMPEXP_CORE wxMemoryDCImpl : public wxDFBDCImpl
|
2006-08-27 05:42:42 -04:00
|
|
|
{
|
|
|
|
public:
|
2008-01-29 09:09:56 -05:00
|
|
|
wxMemoryDCImpl(wxMemoryDC *owner);
|
|
|
|
wxMemoryDCImpl(wxMemoryDC *owner, wxBitmap& bitmap);
|
2007-12-14 17:41:07 -05:00
|
|
|
wxMemoryDCImpl(wxMemoryDC *owner, wxDC *dc); // create compatible DC
|
|
|
|
|
|
|
|
// override wxMemoryDC-specific base class virtual methods
|
|
|
|
virtual const wxBitmap& GetSelectedBitmap() const { return m_bmp; }
|
|
|
|
virtual wxBitmap& GetSelectedBitmap() { return m_bmp; }
|
2006-10-30 14:41:46 -05:00
|
|
|
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;
|
|
|
|
|
2007-12-14 17:41:07 -05:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxMemoryDCImpl)
|
2006-08-27 05:42:42 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _WX_DFB_DCMEMORY_H_
|
|
|
|
|