-//-----------------------------------------------------------------------------
-// wxStaticBitmap
-//-----------------------------------------------------------------------------
+ virtual void SetIcon(const wxIcon& icon) { SetBitmap( icon ); }
+ virtual void SetBitmap( const wxBitmap& bitmap );
+ virtual wxBitmap GetBitmap() const { return m_bitmap; }
+
+ // for compatibility with wxMSW
+ wxIcon GetIcon() const
+ {
+ // don't use wxDynamicCast, icons and bitmaps are really the same thing
+ // in wxGTK
+ return (const wxIcon &)m_bitmap;
+ }
+
+ static wxVisualAttributes
+ GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
+
+private:
+ // creates the new pixmap widget
+ void CreatePixmapWidget();
+
+ wxBitmap m_bitmap;
+
+ DECLARE_DYNAMIC_CLASS(wxStaticBitmap)
+};