X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9b6dbb09746f8f5ee0549a2ff39ae0ac4c725898..92b87be5188118209d22ec2f578203877e57e6be:/include/wx/motif/dcmemory.h diff --git a/include/wx/motif/dcmemory.h b/include/wx/motif/dcmemory.h index c576655b05..6edc566925 100644 --- a/include/wx/motif/dcmemory.h +++ b/include/wx/motif/dcmemory.h @@ -18,7 +18,7 @@ #include "wx/dcclient.h" -class WXDLLEXPORT wxMemoryDC: public wxPaintDC +class WXDLLEXPORT wxMemoryDC: public wxWindowDC { DECLARE_DYNAMIC_CLASS(wxMemoryDC) @@ -29,9 +29,11 @@ class WXDLLEXPORT wxMemoryDC: public wxPaintDC virtual void SelectObject( const wxBitmap& bitmap ); void GetSize( int *width, int *height ) const; + inline wxBitmap& GetBitmap() const { return (wxBitmap&) m_bitmap; } + private: friend wxPaintDC; - wxBitmap m_selected; + wxBitmap m_bitmap; }; #endif