X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d3c7fc996a73e9f6a83067bc28a3c5581a3fee65..71e33cfbbddc293991796772c6e98a0e74ff826b:/include/wx/motif/dcmemory.h diff --git a/include/wx/motif/dcmemory.h b/include/wx/motif/dcmemory.h index 121dda6604..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 virtual ~wxMemoryDC(); - virtual void SelectObject( const wxBitmap& bitmap ); - 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; };