]> git.saurik.com Git - wxWidgets.git/blob - include/wx/palette.h
define wxEventLoopBase::ms_activeLoop in appcmn.cpp instead of doing it in all platfo...
[wxWidgets.git] / include / wx / palette.h
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
12 #ifndef _WX_PALETTE_H_BASE_
13 #define _WX_PALETTE_H_BASE_
14
15 #include "wx/defs.h"
16
17 #if wxUSE_PALETTE
18
19 #include "wx/object.h"
20 #include "wx/gdiobj.h"
21
22 // wxPaletteBase
23 class WXDLLEXPORT wxPaletteBase: public wxGDIObject
24 {
25 public:
26 virtual ~wxPaletteBase() { }
27
28 virtual bool Ok() const = 0;
29 virtual int GetColoursCount() const { wxFAIL_MSG( _T("not implemented") ); return 0; };
30 };
31
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"
48 #endif
49
50 #if WXWIN_COMPATIBILITY_2_4
51 #define wxColorMap wxPalette
52 #define wxColourMap wxPalette
53 #endif
54
55 #endif // wxUSE_PALETTE
56
57 #endif
58 // _WX_PALETTE_H_BASE_