X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/83df96d63a52ebb08b9e32549dc255354b4a18d0..bf89b538f24d96be1dbb5bfa4037397b5438c5e2:/include/wx/motif/bitmap.h diff --git a/include/wx/motif/bitmap.h b/include/wx/motif/bitmap.h index 23f8bcd9be..fd93fc1c2e 100644 --- a/include/wx/motif/bitmap.h +++ b/include/wx/motif/bitmap.h @@ -149,7 +149,7 @@ public: wxBitmap(char **data, wxControl* control); // Load a file or resource - wxBitmap(const wxString& name, long type = wxBITMAP_TYPE_XPM); + wxBitmap(const wxString& name, int type = wxBITMAP_TYPE_XPM); // Constructor for generalised creation from data wxBitmap(void *data, long type, int width, int height, int depth = 1); @@ -171,6 +171,9 @@ public: virtual bool SaveFile(const wxString& name, int type, const wxPalette *cmap = NULL); wxImage ConvertToImage() const; + + // copies the contents and mask of the given (colour) icon to the bitmap + virtual bool CopyFromIcon(const wxIcon& icon); bool Ok() const { return (M_BITMAPDATA && M_BITMAPDATA->m_ok); } int GetWidth() const { return (M_BITMAPDATA ? M_BITMAPDATA->m_width : 0); }