+ GdkPixmap *GetPixmap() const;
+ bool HasPixmap() const;
+ bool HasPixbuf() const;
+ GdkPixbuf *GetPixbuf() const;
+
+ // Basically, this corresponds to Win32 StretchBlt()
+ wxBitmap Rescale(int clipx, int clipy, int clipwidth, int clipheight,
+ int width, int height) const;
+
+ // raw bitmap access support functions
+ void *GetRawData(wxPixelDataBase& data, int bpp);
+ void UngetRawData(wxPixelDataBase& data);
+
+ bool HasAlpha() const;
+
+protected:
+#if wxUSE_IMAGE
+ bool CreateFromImage(const wxImage& image, int depth);
+#endif // wxUSE_IMAGE
+
+ virtual wxGDIRefData* CreateGDIRefData() const;
+ virtual wxGDIRefData* CloneGDIRefData(const wxGDIRefData* data) const;
+
+private:
+#if wxUSE_IMAGE
+ // to be called from CreateFromImage only!
+ bool CreateFromImageAsPixmap(const wxImage& image, int depth);
+ bool CreateFromImageAsPixbuf(const wxImage& image);
+#endif // wxUSE_IMAGE
+
+public:
+ // implementation only
+ enum Representation
+ {
+ Pixmap,
+ Pixbuf
+ };
+ // removes other representations from memory, keeping only 'keep'
+ // (wxBitmap may keep same bitmap e.g. as both pixmap and pixbuf):
+ void PurgeOtherRepresentations(Representation keep);
+
+private:
+ DECLARE_DYNAMIC_CLASS(wxBitmap)