X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/925f7740663f38ed8296ddb247754a9d62152aea..3b49331b7441e091fc5997b830801d76a1243f28:/include/wx/motif/dcmemory.h?ds=sidebyside diff --git a/include/wx/motif/dcmemory.h b/include/wx/motif/dcmemory.h index caae8445ee..6cce52c26b 100644 --- a/include/wx/motif/dcmemory.h +++ b/include/wx/motif/dcmemory.h @@ -14,24 +14,28 @@ #include "wx/dcclient.h" -class WXDLLIMPEXP_CORE wxMemoryDC : public wxWindowDC +class WXDLLIMPEXP_CORE wxMemoryDC : public wxWindowDC, public wxMemoryDCBase { DECLARE_DYNAMIC_CLASS(wxMemoryDC) public: - wxMemoryDC(); + wxMemoryDC() { Init(); } + wxMemoryDC(wxBitmap& bitmap) { Init(); SelectObject(bitmap); } wxMemoryDC( wxDC *dc ); // Create compatible DC - ~wxMemoryDC(); - - virtual void SelectObject( const wxBitmap& bitmap ); + virtual ~wxMemoryDC(); void DoGetSize( int *width, int *height ) const; wxBitmap& GetBitmap() const { return (wxBitmap&) m_bitmap; } +protected: + virtual void DoSelect(const wxBitmap& bitmap); + private: friend class wxPaintDC; + void Init(); + wxBitmap m_bitmap; };