X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d3c7fc996a73e9f6a83067bc28a3c5581a3fee65..d209a914d243b085b77438a2457fad89b20dd663:/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; };