X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/519cb848a8f4c91c73421bb75314754284e593a4..aac65598a1137a8a9d4d31155ba83833500aea4d:/include/wx/mac/statbmp.h diff --git a/include/wx/mac/statbmp.h b/include/wx/mac/statbmp.h index f2162aeb10..a457c967f9 100644 --- a/include/wx/mac/statbmp.h +++ b/include/wx/mac/statbmp.h @@ -52,8 +52,23 @@ class WXDLLEXPORT wxStaticBitmap: public wxControl inline wxBitmap& GetBitmap() const { return (wxBitmap&) m_messageBitmap; } + // for compatibility with wxMSW + const wxIcon& GetIcon() const + { + // don't use wxDynamicCast, icons and bitmaps are really the same thing + // in wxGTK + return (const wxIcon &)m_messageBitmap; + } + + // for compatibility with wxMSW + void SetIcon(const wxIcon& icon) + { + SetBitmap( (const wxBitmap&) icon ); + } + // overriden base class virtuals virtual bool AcceptsFocus() const { return FALSE; } + wxSize DoGetBestSize() const ; protected: wxBitmap m_messageBitmap;