#include "wx/object.h"
#include "wx/string.h"
#include "wx/palette.h"
+#include "wx/gdiobj.h"
//-----------------------------------------------------------------------------
// classes
// wxBitmap
//-----------------------------------------------------------------------------
-class wxBitmap: public wxObject
+class wxBitmap: public wxGDIObject
{
public:
wxBitmap();
wxBitmap( int width, int height, int depth = -1 );
wxBitmap( const char bits[], int width, int height, int depth = 1 );
- wxBitmap( const char **bits );
- wxBitmap( char **bits );
+ wxBitmap( const char **bits ) { (void)CreateFromXpm(bits); }
+ wxBitmap( char **bits ) { (void)CreateFromXpm((const char **)bits); }
wxBitmap( const wxBitmap& bmp );
wxBitmap( const wxString &filename, int type = wxBITMAP_TYPE_XPM );
~wxBitmap();
{ return GetPalette(); };
// implementation
+ // --------------
void SetHeight( int height );
void SetWidth( int width );
GdkPixmap *GetPixmap() const;
GdkBitmap *GetBitmap() const;
-
- // no data :-)
+protected:
+ bool CreateFromXpm(const char **bits);
+
private:
DECLARE_DYNAMIC_CLASS(wxBitmap)
};