X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ad81651f00edc6f489d9b6a0839d316a964fd521..25dd6997c5dfd92e8f8ea056253154b65d109c5a:/src/motif/icon.cpp diff --git a/src/motif/icon.cpp b/src/motif/icon.cpp index fb9802ebfa..a31a6f0646 100644 --- a/src/motif/icon.cpp +++ b/src/motif/icon.cpp @@ -49,6 +49,11 @@ wxIcon::wxIcon(char **data) (void) Create((void*) data, wxBITMAP_TYPE_XPM_DATA, 0, 0, 0); } +wxIcon::wxIcon(const char **data) +{ + (void) Create((void*) data, wxBITMAP_TYPE_XPM_DATA, 0, 0, 0); +} + wxIcon::wxIcon(const wxString& icon_file, long flags, int desiredWidth, int desiredHeight) @@ -56,6 +61,12 @@ wxIcon::wxIcon(const wxString& icon_file, long flags, LoadFile(icon_file, flags, desiredWidth, desiredHeight); } +void wxIcon::CopyFromBitmap(const wxBitmap& bmp) +{ + wxIcon *icon = (wxIcon*)(&bmp); + *this = *icon; +} + wxIcon::~wxIcon() { }