]> git.saurik.com Git - wxWidgets.git/blame - include/wx/palette.h
added more HP-UX charset names
[wxWidgets.git] / include / wx / palette.h
CommitLineData
99d80019
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/palette.h
3// Purpose: Common header and base class for wxPalette
4// Author: Julian Smart
5// Modified by:
6// Created:
7// RCS-ID: $Id$
8// Copyright: (c) Julian Smart
9// Licence: wxWindows Licence
10/////////////////////////////////////////////////////////////////////////////
11
34138703
JS
12#ifndef _WX_PALETTE_H_BASE_
13#define _WX_PALETTE_H_BASE_
c801d85f 14
917be7ed 15#include "wx/defs.h"
2a2ec353 16
d275c7eb
VZ
17#if wxUSE_PALETTE
18
917be7ed
WS
19#include "wx/object.h"
20#include "wx/gdiobj.h"
21
88ef3a57 22// wxPaletteBase
917be7ed
WS
23class WXDLLEXPORT wxPaletteBase: public wxGDIObject
24{
25public:
26 virtual ~wxPaletteBase() { }
27
28 virtual bool Ok() const = 0;
29 virtual int GetColoursCount() const { wxFAIL_MSG( _T("not implemented") ); return 0; };
30};
31
4055ed82 32#if defined(__WXPALMOS__)
917be7ed
WS
33 #include "wx/palmos/palette.h"
34#elif defined(__WXMSW__)
d275c7eb 35 #include "wx/msw/palette.h"
2049ba38 36#elif defined(__WXMOTIF__)
d275c7eb 37 #include "wx/motif/palette.h"
1a4ebaf8 38#elif defined(__WXGTK__) || defined(__WXCOCOA__)
d275c7eb 39 #include "wx/generic/paletteg.h"
83df96d6
JS
40#elif defined(__WXX11__)
41 #include "wx/x11/palette.h"
b2a19d94 42#elif defined(__WXMGL__)
d275c7eb 43 #include "wx/mgl/palette.h"
34138703 44#elif defined(__WXMAC__)
d275c7eb 45 #include "wx/mac/palette.h"
1777b9bb 46#elif defined(__WXPM__)
d275c7eb 47 #include "wx/os2/palette.h"
c801d85f
KB
48#endif
49
917be7ed
WS
50#if WXWIN_COMPATIBILITY_2_4
51 #define wxColorMap wxPalette
52 #define wxColourMap wxPalette
53#endif
54
d275c7eb
VZ
55#endif // wxUSE_PALETTE
56
c801d85f 57#endif
34138703 58 // _WX_PALETTE_H_BASE_