X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9c7a49b57b3c6514cc553c7ba5fb98a0228ad211..56d4016a1685178f2156ee65fb9fc5143c3f7bed:/include/wx/mac/statbmp.h diff --git a/include/wx/mac/statbmp.h b/include/wx/mac/statbmp.h index 48cad8933a..a17d51af4b 100644 --- a/include/wx/mac/statbmp.h +++ b/include/wx/mac/statbmp.h @@ -52,6 +52,20 @@ 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 ;