#ifndef _WX_PALETTE_H_
#define _WX_PALETTE_H_
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(__APPLE__)
#pragma interface "palette.h"
#endif
class WXDLLEXPORT wxPaletteRefData: public wxGDIRefData
{
+ DECLARE_NO_COPY_CLASS(wxPaletteRefData)
+
friend class WXDLLEXPORT wxPalette;
public:
wxPaletteRefData();
~wxPaletteRefData();
protected:
- wxColour* m_palette;
- wxInt32 m_count ;
+ wxColour* m_palette;
+ wxInt32 m_count ;
};
#define M_PALETTEDATA ((wxPaletteRefData *)m_refData)
public:
wxPalette();
- inline wxPalette(const wxPalette& palette) { Ref(palette); }
+ wxPalette(const wxPalette& palette)
+ : wxGDIObject()
+ { Ref(palette); }
wxPalette(int n, const unsigned char *red, const unsigned char *green, const unsigned char *blue);
~wxPalette();