#include "wx/mac/carbon/dcclient.h"
-class WXDLLEXPORT wxMemoryDCImpl: public wxPaintDCImpl
+class WXDLLIMPEXP_CORE wxMemoryDCImpl: public wxPaintDCImpl
{
public:
wxMemoryDCImpl( wxMemoryDC *owner );
virtual ~wxMemoryDCImpl();
-protected:
virtual void DoGetSize( int *width, int *height ) const;
virtual wxBitmap DoGetAsBitmap(const wxRect *subrect) const
{ return subrect == NULL ? GetSelectedBitmap() : GetSelectedBitmap().GetSubBitmap(*subrect); }
virtual void DoSelect(const wxBitmap& bitmap);
+ virtual const wxBitmap& GetSelectedBitmap() const
+ { return m_selected; }
+ virtual wxBitmap& GetSelectedBitmap()
+ { return m_selected; }
+
private:
void Init();
wxBitmap m_selected;
-private:
DECLARE_CLASS(wxMemoryDCImpl)
DECLARE_NO_COPY_CLASS(wxMemoryDCImpl)
};