dcmemory.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/dfb/dcmemory.h
  3. // Purpose: wxMemoryDC class declaration
  4. // Created: 2006-08-10
  5. // Author: Vaclav Slavik
  6. // Copyright: (c) 2006 REA Elektronik GmbH
  7. // Licence: wxWindows licence
  8. /////////////////////////////////////////////////////////////////////////////
  9. #ifndef _WX_DFB_DCMEMORY_H_
  10. #define _WX_DFB_DCMEMORY_H_
  11. #include "wx/dfb/dc.h"
  12. #include "wx/bitmap.h"
  13. class WXDLLIMPEXP_CORE wxMemoryDCImpl : public wxDFBDCImpl
  14. {
  15. public:
  16. wxMemoryDCImpl(wxMemoryDC *owner);
  17. wxMemoryDCImpl(wxMemoryDC *owner, wxBitmap& bitmap);
  18. wxMemoryDCImpl(wxMemoryDC *owner, wxDC *dc); // create compatible DC
  19. // override wxMemoryDC-specific base class virtual methods
  20. virtual const wxBitmap& GetSelectedBitmap() const { return m_bmp; }
  21. virtual wxBitmap& GetSelectedBitmap() { return m_bmp; }
  22. virtual void DoSelect(const wxBitmap& bitmap);
  23. private:
  24. void Init();
  25. wxBitmap m_bmp;
  26. DECLARE_DYNAMIC_CLASS(wxMemoryDCImpl)
  27. };
  28. #endif // _WX_DFB_DCMEMORY_H_