]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/gtk/statbmp.h
Increased the max length of allowed WHERE clauses and full statements (eventually...
[wxWidgets.git] / include / wx / gtk / statbmp.h
index 7f902acf835267d305ea9cb49f54336555b7c41c..f56a5d4d569fd60864b5dfa1a486a246298e34fa 100644 (file)
@@ -67,9 +67,26 @@ public:
     const wxBitmap& GetBitmap() const { return m_bitmap; }
 
     // for compatibility with wxMSW
-    wxIcon& GetIcon();
+    const wxIcon& GetIcon() const
+    {
+        // don't use wxDynamicCast, icons and bitmaps are really the same thing
+        // in wxGTK
+        return (const wxIcon &)m_bitmap;
+    }
+
+    // for compatibility with wxMSW
+    void  SetIcon(const wxIcon& icon)
+    {
+        SetBitmap( icon );
+    }
+
+protected:
+    virtual wxSize DoGetBestSize() const;
 
 private:
+    // creates the new pixmap widget
+    void CreatePixmapWidget();
+
     wxBitmap   m_bitmap;
 };