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:
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// 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
|
2004-12-08 17:43:18 +00:00
|
|
|
class WXDLLEXPORT wxPaletteBase: public wxGDIObject
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual ~wxPaletteBase() { }
|
|
|
|
|
|
|
|
virtual bool Ok() const = 0;
|
|
|
|
virtual int GetColoursCount() const { wxFAIL_MSG( _T("not implemented") ); return 0; };
|
|
|
|
};
|
|
|
|
|
2004-12-20 12:44:22 +00:00
|
|
|
#if defined(__WXPALMOS__)
|
2004-12-08 17:43:18 +00:00
|
|
|
#include "wx/palmos/palette.h"
|
|
|
|
#elif defined(__WXMSW__)
|
2001-09-30 22:06:39 +00:00
|
|
|
#include "wx/msw/palette.h"
|
1998-07-10 14:15:17 +00:00
|
|
|
#elif defined(__WXMOTIF__)
|
2001-09-30 22:06:39 +00:00
|
|
|
#include "wx/motif/palette.h"
|
2003-03-22 06:07:11 +00:00
|
|
|
#elif defined(__WXGTK__) || defined(__WXCOCOA__)
|
2001-09-30 22:06:39 +00:00
|
|
|
#include "wx/generic/paletteg.h"
|
2002-02-05 16:34:33 +00:00
|
|
|
#elif defined(__WXX11__)
|
|
|
|
#include "wx/x11/palette.h"
|
2001-07-31 22:36:29 +00:00
|
|
|
#elif defined(__WXMGL__)
|
2001-09-30 22:06:39 +00:00
|
|
|
#include "wx/mgl/palette.h"
|
1998-08-15 00:23:28 +00:00
|
|
|
#elif defined(__WXMAC__)
|
2001-09-30 22:06:39 +00:00
|
|
|
#include "wx/mac/palette.h"
|
1999-07-28 03:38:12 +00:00
|
|
|
#elif defined(__WXPM__)
|
2001-09-30 22:06:39 +00:00
|
|
|
#include "wx/os2/palette.h"
|
1998-05-20 14:01:55 +00:00
|
|
|
#endif
|
|
|
|
|
2004-12-08 17:43:18 +00:00
|
|
|
#if WXWIN_COMPATIBILITY_2_4
|
|
|
|
#define wxColorMap wxPalette
|
|
|
|
#define wxColourMap wxPalette
|
|
|
|
#endif
|
|
|
|
|
2001-09-30 22:06:39 +00:00
|
|
|
#endif // wxUSE_PALETTE
|
|
|
|
|
1998-05-20 14:01:55 +00:00
|
|
|
#endif
|
1998-08-15 00:23:28 +00:00
|
|
|
// _WX_PALETTE_H_BASE_
|