]>
Commit | Line | Data |
---|---|---|
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 |
53a2db12 | 23 | class WXDLLIMPEXP_CORE wxPaletteBase: public wxGDIObject |
917be7ed WS |
24 | { |
25 | public: | |
26 | virtual ~wxPaletteBase() { } | |
27 | ||
9a83f860 | 28 | virtual int GetColoursCount() const { wxFAIL_MSG( wxT("not implemented") ); return 0; } |
917be7ed WS |
29 | }; |
30 | ||
4055ed82 | 31 | #if defined(__WXPALMOS__) |
917be7ed WS |
32 | #include "wx/palmos/palette.h" |
33 | #elif defined(__WXMSW__) | |
d275c7eb | 34 | #include "wx/msw/palette.h" |
61845585 VZ |
35 | #elif defined(__WXX11__) || defined(__WXMOTIF__) |
36 | #include "wx/x11/palette.h" | |
1a4ebaf8 | 37 | #elif defined(__WXGTK__) || defined(__WXCOCOA__) |
d275c7eb | 38 | #include "wx/generic/paletteg.h" |
b2a19d94 | 39 | #elif defined(__WXMGL__) |
d275c7eb | 40 | #include "wx/mgl/palette.h" |
34138703 | 41 | #elif defined(__WXMAC__) |
ef0e9220 | 42 | #include "wx/osx/palette.h" |
1777b9bb | 43 | #elif defined(__WXPM__) |
d275c7eb | 44 | #include "wx/os2/palette.h" |
c801d85f KB |
45 | #endif |
46 | ||
d275c7eb VZ |
47 | #endif // wxUSE_PALETTE |
48 | ||
61845585 | 49 | #endif // _WX_PALETTE_H_BASE_ |