X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b3c861501a451503b31c075ccb59d16b0ae01e99..855f31ebe72bef834a32df2c274b41fb282ad265:/include/wx/dfb/dcmemory.h diff --git a/include/wx/dfb/dcmemory.h b/include/wx/dfb/dcmemory.h index afe7fcf12f..d5b1a72d9b 100644 --- a/include/wx/dfb/dcmemory.h +++ b/include/wx/dfb/dcmemory.h @@ -14,13 +14,24 @@ #include "wx/dc.h" #include "wx/bitmap.h" -class WXDLLIMPEXP_CORE wxMemoryDC : public wxDC +class WXDLLIMPEXP_CORE wxMemoryDC : public wxDC, public wxMemoryDCBase { public: - wxMemoryDC(); + wxMemoryDC() { Init(); } + wxMemoryDC(wxBitmap& bitmap) { Init(); SelectObject(bitmap); } wxMemoryDC(wxDC *dc); // create compatible DC - virtual void SelectObject(const wxBitmap& bitmap); + // implementation from now on: + + wxBitmap GetSelectedObject() const { return m_bmp; } + +protected: + virtual void DoSelect(const wxBitmap& bitmap); + +private: + void Init(); + + wxBitmap m_bmp; DECLARE_DYNAMIC_CLASS(wxMemoryDC) };