- 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(); };
-
- private:
-
- friend wxDC;
- friend wxPaintDC;
- friend wxMemoryDC;
- friend wxToolBarGTK;
- friend wxBitmapButton;
- friend wxStaticBitmap;
-
- GdkPixmap *GetPixmap(void) const;
- GdkBitmap *GetBitmap(void) const;
+ wxBitmap GetSubBitmap( const wxRect& rect ) const;
+
+ bool SaveFile( const wxString &name, int type, wxPalette *palette = (wxPalette *) NULL );
+ bool LoadFile( const wxString &name, int type = wxBITMAP_TYPE_XPM );
+
+ wxPalette *GetPalette() const;
+ wxPalette *GetColourMap() const
+ { return GetPalette(); };
+
+ // implementation
+ // --------------
+
+ void SetHeight( int height );
+ void SetWidth( int width );
+ void SetDepth( int depth );
+ void SetPixmap( GdkPixmap *pixmap );
+ void SetBitmap( GdkBitmap *bitmap );
+
+ GdkPixmap *GetPixmap() const;
+ GdkBitmap *GetBitmap() const;