1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Common header and base class for wxPalette
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows Licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_PALETTE_H_BASE_
13 #define _WX_PALETTE_H_BASE_
19 #include "wx/object.h"
20 #include "wx/gdiobj.h"
23 class WXDLLEXPORT wxPaletteBase
: public wxGDIObject
26 virtual ~wxPaletteBase() { }
28 virtual bool Ok() const = 0;
29 virtual int GetColoursCount() const { wxFAIL_MSG( _T("not implemented") ); return 0; };
32 #if defined(__WXPALMOS__)
33 #include "wx/palmos/palette.h"
34 #elif defined(__WXMSW__)
35 #include "wx/msw/palette.h"
36 #elif defined(__WXMOTIF__)
37 #include "wx/motif/palette.h"
38 #elif defined(__WXGTK__) || defined(__WXCOCOA__)
39 #include "wx/generic/paletteg.h"
40 #elif defined(__WXX11__)
41 #include "wx/x11/palette.h"
42 #elif defined(__WXMGL__)
43 #include "wx/mgl/palette.h"
44 #elif defined(__WXMAC__)
45 #include "wx/mac/palette.h"
46 #elif defined(__WXPM__)
47 #include "wx/os2/palette.h"
50 #if WXWIN_COMPATIBILITY_2_4
51 #define wxColorMap wxPalette
52 #define wxColourMap wxPalette
55 #endif // wxUSE_PALETTE
58 // _WX_PALETTE_H_BASE_