X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/519cb848a8f4c91c73421bb75314754284e593a4..5527476f67f7313aeea0d16b2fe366e5a5ddb493:/include/wx/mac/statbmp.h diff --git a/include/wx/mac/statbmp.h b/include/wx/mac/statbmp.h index f2162aeb10..a17d51af4b 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( icon ); + } + // overriden base class virtuals virtual bool AcceptsFocus() const { return FALSE; } + wxSize DoGetBestSize() const ; protected: wxBitmap m_messageBitmap;