2005-05-04 18:57:50 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/palette.h
|
|
|
|
// Purpose: Common header and base class for wxPalette
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created:
|
|
|
|
// Copyright: (c) Julian Smart
|
|
|
|
// Licence: wxWindows Licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
1998-08-15 00:23:28 +00:00
|
|
|
#ifndef _WX_PALETTE_H_BASE_
|
|
|
|
#define _WX_PALETTE_H_BASE_
|
1998-05-20 14:01:55 +00:00
|
|
|
|
2004-12-08 17:43:18 +00:00
|
|
|
#include "wx/defs.h"
|
2001-11-16 15:08:49 +00:00
|
|
|
|
2001-09-30 22:06:39 +00:00
|
|
|
#if wxUSE_PALETTE
|
|
|
|
|
2004-12-08 17:43:18 +00:00
|
|
|
#include "wx/object.h"
|
|
|
|
#include "wx/gdiobj.h"
|
|
|
|
|
2005-10-06 14:37:43 +00:00
|
|
|
// wxPaletteBase
|
2008-03-26 15:06:00 +00:00
|
|
|
class WXDLLIMPEXP_CORE wxPaletteBase: public wxGDIObject
|
2004-12-08 17:43:18 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual ~wxPaletteBase() { }
|
|
|
|
|
2009-07-23 20:30:22 +00:00
|
|
|
virtual int GetColoursCount() const { wxFAIL_MSG( wxT("not implemented") ); return 0; }
|
2004-12-08 17:43:18 +00:00
|
|
|
};
|
|
|
|
|
2012-01-15 01:05:28 +00:00
|
|
|
#if defined(__WXMSW__)
|
2001-09-30 22:06:39 +00:00
|
|
|
#include "wx/msw/palette.h"
|
2007-12-15 15:48:29 +00:00
|
|
|
#elif defined(__WXX11__) || defined(__WXMOTIF__)
|
|
|
|
#include "wx/x11/palette.h"
|
2014-07-03 22:03:21 +00:00
|
|
|
#elif defined(__WXGTK__)
|
2001-09-30 22:06:39 +00:00
|
|
|
#include "wx/generic/paletteg.h"
|
1998-08-15 00:23:28 +00:00
|
|
|
#elif defined(__WXMAC__)
|
2008-06-11 19:17:41 +00:00
|
|
|
#include "wx/osx/palette.h"
|
2014-08-24 01:50:11 +00:00
|
|
|
#elif defined(__WXQT__)
|
|
|
|
#include "wx/qt/palette.h"
|
1998-05-20 14:01:55 +00:00
|
|
|
#endif
|
|
|
|
|
2001-09-30 22:06:39 +00:00
|
|
|
#endif // wxUSE_PALETTE
|
|
|
|
|
2007-12-15 15:48:29 +00:00
|
|
|
#endif // _WX_PALETTE_H_BASE_
|