-
- bool SaveFile( const wxString &name, const int type, wxPalette *palette = NULL );
- bool LoadFile( const wxString &name, const int type );
-
- wxPalette *GetPalette(void) const;
- wxPalette *GetColourMap(void) const
- { return GetPalette(); };
+ wxBitmap GetMaskBitmap() const;
+
+ wxBitmap GetSubBitmap( const wxRect& rect ) const;
+
+ bool SaveFile(const wxString &name, wxBitmapType type,
+ const wxPalette *palette = NULL) const;
+ bool LoadFile(const wxString &name, wxBitmapType type = wxBITMAP_DEFAULT_TYPE);
+
+#if wxUSE_PALETTE
+ wxPalette *GetPalette() const;
+ void SetPalette(const wxPalette& palette);
+ wxPalette *GetColourMap() const { return GetPalette(); }
+#endif // wxUSE_PALETTE
+
+ static void InitStandardHandlers();
+
+ // implementation
+ // --------------
+
+ void SetHeight( int height );
+ void SetWidth( int width );
+ void SetDepth( int depth );
+
+#ifdef __WXGTK3__
+ GdkPixbuf* GetPixbufNoMask() const;
+ cairo_t* CairoCreate() const;
+ void Draw(cairo_t* cr, int x, int y, bool useMask = true, const wxColour* fg = NULL, const wxColour* bg = NULL) const;
+ void SetSourceSurface(cairo_t* cr, int x, int y, const wxColour* fg = NULL, const wxColour* bg = NULL) const;
+#else
+ GdkPixmap *GetPixmap() const;
+ bool HasPixmap() const;
+ bool HasPixbuf() const;
+ wxBitmap(GdkPixmap* pixmap);
+#endif
+ GdkPixbuf *GetPixbuf() const;