[ 1559479 ] wxImageComboBox
[wxWidgets.git] / include / wx / bmpcbox.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/bmpcbox.h
3 // Purpose: wxBitmapComboBox base header
4 // Author: Jaakko Salli
5 // Modified by:
6 // Created: Aug-31-2006
7 // Copyright: (c) Jaakko Salli
8 // RCS-ID: $Id:
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_BMPCBOX_H_BASE_
13 #define _WX_BMPCBOX_H_BASE_
14
15
16 #include "wx/defs.h"
17
18 #if wxUSE_BITMAPCOMBOBOX
19
20 #include "wx/bitmap.h"
21
22
23 extern WXDLLIMPEXP_DATA_ADV(const wxChar) wxBitmapComboBoxNameStr[];
24
25
26 class WXDLLIMPEXP_ADV wxBitmapComboBoxBase
27 {
28 public:
29
30 // ctors and such
31 wxBitmapComboBoxBase() { }
32
33 virtual ~wxBitmapComboBoxBase() { }
34
35 // Returns the image of the item with the given index.
36 virtual wxBitmap GetItemBitmap(unsigned int n) const = 0;
37
38 // Sets the image for the given item.
39 virtual void SetItemBitmap(unsigned int n, const wxBitmap& bitmap) = 0;
40
41 // Returns size of the image used in list
42 virtual wxSize GetBitmapSize() const = 0;
43
44 protected:
45
46 private:
47 };
48
49
50 #if defined(__WXUNIVERSAL__)
51 #include "wx/generic/bmpcbox.h"
52 #else
53 #include "wx/generic/bmpcbox.h"
54 #endif
55
56 #endif // wxUSE_BITMAPCOMBOBOX
57
58 #endif
59 // _WX_BMPCBOX_H_BASE_