~brian-sidebotham/wxwidgets-cmake/wxpython-2.9.4

« back to all changes in this revision

Viewing changes to include/wx/palette.h

  • Committer: Brian Sidebotham
  • Date: 2013-08-03 14:30:08 UTC
  • Revision ID: brian.sidebotham@gmail.com-20130803143008-c7806tkych1tp6fc
Initial import into Bazaar

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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: palette.h 70353 2012-01-15 14:46:41Z VZ $
 
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 WXDLLIMPEXP_CORE wxPaletteBase: public wxGDIObject
 
24
{
 
25
public:
 
26
    virtual ~wxPaletteBase() { }
 
27
 
 
28
    virtual int GetColoursCount() const { wxFAIL_MSG( wxT("not implemented") ); return 0; }
 
29
};
 
30
 
 
31
#if defined(__WXMSW__)
 
32
    #include "wx/msw/palette.h"
 
33
#elif defined(__WXX11__) || defined(__WXMOTIF__)
 
34
    #include "wx/x11/palette.h"
 
35
#elif defined(__WXGTK__) || defined(__WXCOCOA__)
 
36
    #include "wx/generic/paletteg.h"
 
37
#elif defined(__WXMAC__)
 
38
    #include "wx/osx/palette.h"
 
39
#elif defined(__WXPM__)
 
40
    #include "wx/os2/palette.h"
 
41
#endif
 
42
 
 
43
#endif // wxUSE_PALETTE
 
44
 
 
45
#endif // _WX_PALETTE_H_BASE_