dcmemory.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/x11/dcmemory.h
  3. // Purpose: wxMemoryDC class
  4. // Author: Julian Smart
  5. // Modified by:
  6. // Created: 17/09/98
  7. // Copyright: (c) Julian Smart
  8. // Licence: wxWindows licence
  9. /////////////////////////////////////////////////////////////////////////////
  10. #ifndef _WX_DCMEMORY_H_
  11. #define _WX_DCMEMORY_H_
  12. #include "wx/dc.h"
  13. #include "wx/dcmemory.h"
  14. #include "wx/x11/dcclient.h"
  15. class WXDLLIMPEXP_CORE wxMemoryDCImpl : public wxWindowDCImpl
  16. {
  17. public:
  18. wxMemoryDCImpl( wxDC* owner );
  19. wxMemoryDCImpl( wxDC* owner, wxBitmap& bitmap);
  20. wxMemoryDCImpl( wxDC* owner, wxDC *dc );
  21. virtual ~wxMemoryDCImpl();
  22. virtual const wxBitmap& GetSelectedBitmap() const;
  23. virtual wxBitmap& GetSelectedBitmap();
  24. // implementation
  25. wxBitmap m_selected;
  26. protected:
  27. virtual void DoGetSize( int *width, int *height ) const;
  28. virtual void DoSelect(const wxBitmap& bitmap);
  29. private:
  30. void Init();
  31. private:
  32. DECLARE_CLASS(wxMemoryDCImpl)
  33. };
  34. #endif
  35. // _WX_DCMEMORY_H_