]> git.saurik.com Git - wxWidgets.git/blob - include/wx/palette.h
Process capture lost event to avoid assertion
[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 { return IsOk(); }
29 virtual bool IsOk() const = 0;
30 virtual int GetColoursCount() const { wxFAIL_MSG( _T("not implemented") ); return 0; }
31 };
32
33 #if defined(__WXPALMOS__)
34 #include "wx/palmos/palette.h"
35 #elif defined(__WXMSW__)
36 #include "wx/msw/palette.h"
37 #elif defined(__WXMOTIF__)
38 #include "wx/motif/palette.h"
39 #elif defined(__WXGTK__) || defined(__WXCOCOA__)
40 #include "wx/generic/paletteg.h"
41 #elif defined(__WXX11__)
42 #include "wx/x11/palette.h"
43 #elif defined(__WXMGL__)
44 #include "wx/mgl/palette.h"
45 #elif defined(__WXMAC__)
46 #include "wx/mac/palette.h"
47 #elif defined(__WXPM__)
48 #include "wx/os2/palette.h"
49 #endif
50
51 #if WXWIN_COMPATIBILITY_2_4
52 #define wxColorMap wxPalette
53 #define wxColourMap wxPalette
54 #endif
55
56 #endif // wxUSE_PALETTE
57
58 #endif
59 // _WX_PALETTE_H_BASE_