- DECLARE_DYNAMIC_CLASS(wxImageList)
-
- public:
-
- wxImageList(void);
- ~wxImageList(void);
- bool Create(void);
- int GetImageCount(void) const;
- int Add( const wxBitmap &bitmap );
- bool Replace( const int index, const wxBitmap &bitmap );
- bool Remove( const int index );
- bool RemoveAll(void);
- bool GetSize( const int index, int &width, int &height ) const;
- bool Draw(const int index, wxDC& dc, const int x, const int y,
- const int flags = wxIMAGELIST_DRAW_NORMAL, const bool solidBackground = FALSE );
-
- private:
+public:
+ wxGenericImageList() { }
+ wxGenericImageList( int width, int height, bool mask = TRUE, int initialCount = 1 );
+ ~wxGenericImageList();
+ bool Create( int width, int height, bool mask = TRUE, int initialCount = 1 );
+ bool Create();
+
+ virtual int GetImageCount() const;
+ virtual bool GetSize( int index, int &width, int &height ) const;
+
+ int Add( const wxBitmap& bitmap );
+ int Add( const wxBitmap& bitmap, const wxBitmap& mask );
+ int Add( const wxBitmap& bitmap, const wxColour& maskColour );
+ const wxBitmap *GetBitmap(int index) const;
+ bool Replace( int index, const wxBitmap &bitmap );
+ bool Remove( int index );
+ bool RemoveAll();