X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0e320a79f187558effb04d92020b470372bbe456..73974df1f951f176f592fd900352c41281eb5df2:/include/wx/os2/bitmap.h diff --git a/include/wx/os2/bitmap.h b/include/wx/os2/bitmap.h index 1d2f5417e5..1dec7c28aa 100644 --- a/include/wx/os2/bitmap.h +++ b/include/wx/os2/bitmap.h @@ -81,7 +81,9 @@ public: wxPalette m_bitmapPalette; int m_quality; -/* WXHBITMAP m_hBitmap; TODO: platform-specific handle */ + WXHBITMAP m_hBitmap; + wxDC * m_selectedInto; // So bitmap knows whether it's been selected into + wxMask * m_bitmapMask; // Optional mask }; @@ -184,14 +186,13 @@ public: protected: static wxList sm_handlers; -/* // TODO: Implementation public: void SetHBITMAP(WXHBITMAP bmp); inline WXHBITMAP GetHBITMAP() const { return (M_BITMAPDATA ? M_BITMAPDATA->m_hBitmap : 0); } - bool FreeResource(bool force = FALSE); -*/ - + inline void SetSelectedInto(wxDC *dc) { if (M_BITMAPDATA) M_BITMAPDATA->m_selectedInto = dc; } + inline wxDC *GetSelectedInto(void) const { return (M_BITMAPDATA ? M_BITMAPDATA->m_selectedInto : (wxDC*) NULL); } +// bool FreeResource(bool force = FALSE); }; #endif // _WX_BITMAP_H_