X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/432efcb004c8a7f4997acab1aa044c78226c36bb..c3c62822fdda9d340179dec663a806e905882cc9:/include/wx/x11/dcmemory.h?ds=sidebyside diff --git a/include/wx/x11/dcmemory.h b/include/wx/x11/dcmemory.h index 40c97fc7f0..0a86134f66 100644 --- a/include/wx/x11/dcmemory.h +++ b/include/wx/x11/dcmemory.h @@ -14,19 +14,23 @@ #include "wx/dcclient.h" -class WXDLLIMPEXP_CORE wxMemoryDC : public wxWindowDC +class WXDLLIMPEXP_CORE wxMemoryDC : public wxWindowDC, public wxMemoryDCBase { public: - wxMemoryDC( const wxBitmap& bitmap = wxNullBitmap ); + wxMemoryDC() { Init(); } + wxMemoryDC(wxBitmap& bitmap) { Init(); SelectObject(bitmap); } wxMemoryDC( wxDC *dc ); // Create compatible DC virtual ~wxMemoryDC(); - virtual void SelectObject( const wxBitmap& bitmap ); // implementation wxBitmap m_selected; protected: - void DoGetSize( int *width, int *height ) const; + virtual void DoGetSize( int *width, int *height ) const; + virtual void DoSelect(const wxBitmap& bitmap); + +private: + void Init(); DECLARE_DYNAMIC_CLASS(wxMemoryDC) };