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 WXDLLIMPEXP_CORE wxPaletteBase
: public wxGDIObject
26 virtual ~wxPaletteBase() { }
28 virtual int GetColoursCount() const { wxFAIL_MSG( _T("not implemented") ); return 0; }
31 #if defined(__WXPALMOS__)
32 #include "wx/palmos/palette.h"
33 #elif defined(__WXMSW__)
34 #include "wx/msw/palette.h"
35 #elif defined(__WXX11__) || defined(__WXMOTIF__)
36 #include "wx/x11/palette.h"
37 #elif defined(__WXGTK__) || defined(__WXCOCOA__)
38 #include "wx/generic/paletteg.h"
39 #elif defined(__WXMGL__)
40 #include "wx/mgl/palette.h"
41 #elif defined(__WXMAC__)
42 #include "wx/mac/palette.h"
43 #elif defined(__WXPM__)
44 #include "wx/os2/palette.h"
47 #endif // wxUSE_PALETTE
49 #endif // _WX_PALETTE_H_BASE_