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