#include "wx/gdiobj.h"
#include "wx/list.h"
-class WXDLLEXPORT wxPalette;
+class WXDLLIMPEXP_FWD_CORE wxPalette;
// Palette for one display
class wxXPalette : public wxObject
class WXDLLEXPORT wxPaletteRefData: public wxGDIRefData
{
- friend class WXDLLEXPORT wxPalette;
+ friend class WXDLLIMPEXP_FWD_CORE wxPalette;
public:
wxPaletteRefData();
virtual ~wxPaletteRefData();
int GetPixel(unsigned char red, unsigned char green, unsigned char blue) const;
bool GetRGB(int pixel, unsigned char *red, unsigned char *green, unsigned char *blue) const;
- virtual bool Ok() const { return (m_refData != NULL) ; }
-
- bool operator == (const wxPalette& palette) const { return m_refData == palette.m_refData; }
- bool operator != (const wxPalette& palette) const { return m_refData != palette.m_refData; }
+ virtual bool Ok() const { return IsOk(); }
+ virtual bool IsOk() const { return (m_refData != NULL) ; }
// Motif-specific
WXColormap GetXColormap(WXDisplay* display = NULL) const;