]>
Commit | Line | Data |
---|---|---|
1 | #ifndef _WX_PALETTE_H_BASE_ | |
2 | #define _WX_PALETTE_H_BASE_ | |
3 | ||
4 | #include "wx/defs.h" | |
5 | ||
6 | #if wxUSE_PALETTE | |
7 | ||
8 | #include "wx/object.h" | |
9 | #include "wx/gdiobj.h" | |
10 | ||
11 | // wxBrushBase | |
12 | class WXDLLEXPORT wxPaletteBase: public wxGDIObject | |
13 | { | |
14 | public: | |
15 | virtual ~wxPaletteBase() { } | |
16 | ||
17 | virtual bool Ok() const = 0; | |
18 | virtual int GetColoursCount() const { wxFAIL_MSG( _T("not implemented") ); return 0; }; | |
19 | }; | |
20 | ||
21 | #if defined(__WXPALMOS__) | |
22 | #include "wx/palmos/palette.h" | |
23 | #elif defined(__WXMSW__) | |
24 | #include "wx/msw/palette.h" | |
25 | #elif defined(__WXMOTIF__) | |
26 | #include "wx/motif/palette.h" | |
27 | #elif defined(__WXGTK__) || defined(__WXCOCOA__) | |
28 | #include "wx/generic/paletteg.h" | |
29 | #elif defined(__WXX11__) | |
30 | #include "wx/x11/palette.h" | |
31 | #elif defined(__WXMGL__) | |
32 | #include "wx/mgl/palette.h" | |
33 | #elif defined(__WXMAC__) | |
34 | #include "wx/mac/palette.h" | |
35 | #elif defined(__WXPM__) | |
36 | #include "wx/os2/palette.h" | |
37 | #endif | |
38 | ||
39 | #if WXWIN_COMPATIBILITY_2_4 | |
40 | #define wxColorMap wxPalette | |
41 | #define wxColourMap wxPalette | |
42 | #endif | |
43 | ||
44 | #endif // wxUSE_PALETTE | |
45 | ||
46 | #endif | |
47 | // _WX_PALETTE_H_BASE_ |