]> git.saurik.com Git - wxWidgets.git/blame - include/wx/palette.h
Fixes for semicolons, commas and wxSTRING_MAXLEN from Wlodek Szafran.
[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
b7cacb43
VZ
28 virtual bool Ok() const { return IsOk(); }
29 virtual bool IsOk() const = 0;
5633b968 30 virtual int GetColoursCount() const { wxFAIL_MSG( _T("not implemented") ); return 0; }
917be7ed
WS
31};
32
4055ed82 33#if defined(__WXPALMOS__)
917be7ed
WS
34 #include "wx/palmos/palette.h"
35#elif defined(__WXMSW__)
d275c7eb 36 #include "wx/msw/palette.h"
2049ba38 37#elif defined(__WXMOTIF__)
d275c7eb 38 #include "wx/motif/palette.h"
1a4ebaf8 39#elif defined(__WXGTK__) || defined(__WXCOCOA__)
d275c7eb 40 #include "wx/generic/paletteg.h"
83df96d6
JS
41#elif defined(__WXX11__)
42 #include "wx/x11/palette.h"
b2a19d94 43#elif defined(__WXMGL__)
d275c7eb 44 #include "wx/mgl/palette.h"
34138703 45#elif defined(__WXMAC__)
d275c7eb 46 #include "wx/mac/palette.h"
1777b9bb 47#elif defined(__WXPM__)
d275c7eb 48 #include "wx/os2/palette.h"
c801d85f
KB
49#endif
50
917be7ed
WS
51#if WXWIN_COMPATIBILITY_2_4
52 #define wxColorMap wxPalette
53 #define wxColourMap wxPalette
54#endif
55
d275c7eb
VZ
56#endif // wxUSE_PALETTE
57
c801d85f 58#endif
34138703 59 // _WX_PALETTE_H_BASE_