X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d3c7fc996a73e9f6a83067bc28a3c5581a3fee65..52170c5b4419c63d6e0083df411aad420395ec98:/include/wx/x11/dcmemory.h diff --git a/include/wx/x11/dcmemory.h b/include/wx/x11/dcmemory.h index a9d5ebd7f7..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(); + 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) };