1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Common header and base class for wxPalette
4 // Author: Julian Smart
7 // Copyright: (c) Julian Smart
8 // Licence: wxWindows Licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_PALETTE_H_BASE_
12 #define _WX_PALETTE_H_BASE_
18 #include "wx/object.h"
19 #include "wx/gdiobj.h"
22 class WXDLLIMPEXP_CORE wxPaletteBase
: public wxGDIObject
25 virtual ~wxPaletteBase() { }
27 virtual int GetColoursCount() const { wxFAIL_MSG( wxT("not implemented") ); return 0; }
30 #if defined(__WXMSW__)
31 #include "wx/msw/palette.h"
32 #elif defined(__WXX11__) || defined(__WXMOTIF__)
33 #include "wx/x11/palette.h"
34 #elif defined(__WXGTK__) || defined(__WXCOCOA__)
35 #include "wx/generic/paletteg.h"
36 #elif defined(__WXMAC__)
37 #include "wx/osx/palette.h"
38 #elif defined(__WXPM__)
39 #include "wx/os2/palette.h"
42 #endif // wxUSE_PALETTE
44 #endif // _WX_PALETTE_H_BASE_