]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/palette.h
Somehow, setting a tint color makes gauge work :/.
[wxWidgets.git] / include / wx / palette.h
... / ...
CommitLineData
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// Copyright: (c) Julian Smart
8// Licence: wxWindows Licence
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_PALETTE_H_BASE_
12#define _WX_PALETTE_H_BASE_
13
14#include "wx/defs.h"
15
16#if wxUSE_PALETTE
17
18#include "wx/object.h"
19#include "wx/gdiobj.h"
20
21// wxPaletteBase
22class WXDLLIMPEXP_CORE wxPaletteBase: public wxGDIObject
23{
24public:
25 virtual ~wxPaletteBase() { }
26
27 virtual int GetColoursCount() const { wxFAIL_MSG( wxT("not implemented") ); return 0; }
28};
29
30#if defined(__WXMSW__)
31 #include "wx/msw/palette.h"
32#elif defined(__WXX11__) || defined(__WXMOTIF__)
33 #include "wx/x11/palette.h"
34#elif defined(__WXGTK__) || defined(__WXCOCOA__)
35 #include "wx/generic/paletteg.h"
36#elif defined(__WXMAC__)
37 #include "wx/osx/palette.h"
38#elif defined(__WXPM__)
39 #include "wx/os2/palette.h"
40#endif
41
42#endif // wxUSE_PALETTE
43
44#endif // _WX_PALETTE_H_BASE_